Bump
|
Trying to draw item names over ground items (name and quantity), client is GitHub - Pazaz/RT4-Client: RT4 client originally compiled on Jan 28, 2009 (530) and the server is a locally hosted 2009scape server.
Been messing around with the render function in ObjStack but no luck so far, any help is appreciated
Bump
I haven't found a good place to hook into (if you draw 2d text while in that render method it will probably result in some of the scenery disappearing), but you would call something like this:
The next part is converting the 3D-space coordinates into a suitable 2D-screen coordinate above the item (easier said than done but the calling function does expose "xFine" and "zFine" that you'd use here). The 2009scape guys have a plugin system but I don't think this area is exposed much at all.Code:Fonts.p11Full.renderCenter( JagString.concatenate(new JagString[] { ObjTypeList.get(objStack.type).name, JagString.parse(" "), JagString.parseInt(objStack.amount) }), x, y, color, -1 );
I've seen someone do a port of RuneLite to 530 (based on one of the 530s clients I worked on) where they had something like what you want after integrating the necessary API calls. Unfortunately they didn't release anything publicly, just screenshots and help requests.
---EDIT---
Found a screenshot of that guy's port. No code unfortunately.
https://media.discordapp.net/attachm...72/unknown.png
I've had a look at how RuneLite does it and the 3d to 2d conversations (the world 2 canvas stuff I believe) but I'm not even sure where to start in the RT4 client. I am indeed playing using the offline/singleplayer version of 2009 and had a look at the plugin system but it's still very WIP and like you said not much is currently exposed.
That 530 screenshot looks interesting, obviously a full RL port would be ideal but gotta start somewhere, seems that not that many are interested in the 530-around-ish-client which is a shame, thanks for sharing the picture and I appreciate the information, if you find something else feel free to let me know/post it.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
Tags for this Thread |