Jump to content

Recommended Posts

Posted

Hey all!

 

Working on creating a little interface with a scrollable list (not having the greatest luck, but getting there), and I have come across a two problems I need some help with.

 

Firstly, the files related are located:

https://github.com/countnoobula/AlchemyTrader/blob/master/src/com/nightfallstudios/alchemytrader/gui/GuiSlotExchange.java

https://github.com/countnoobula/AlchemyTrader/blob/master/src/com/nightfallstudios/alchemytrader/gui/GuiExchangeTable.java

 

My first problem is that the drawSlot function is not being called.

I am not too sure why, I have the drawScreen called, and have the size as 1. Any insight much appreciated?

 

My second problem is that I seem to be failing at aligning it to where I want, whenever I open the GUI, in the background, there is a dark area on the left (the scrollbar background?) and I need it to be shrunk and aligned into the available box here: https://github.com/countnoobula/AlchemyTrader/blob/master/assets/alchemytrader/textures/gui/exchange_table.png

Any advice much appreciated on that aswell!

 

I really hope you guys can help :)

Posted

Solved! :D

Well, mostly. New problems now :/

Anyway, the reason it wasn't being called is because my top and bottom were incorrectly set :/

It's rendering now. Although behind the main hud now :/

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.