Help with GUI items
Posted: Wed Aug 01, 2018 8:07 pm
Hello everyone
I think I need some help from more experienced modders here...
I'm trying to implement a rectangle of text which pops up at a certain point of my mod, and then asks the player to choose two of his/her champions. what I have in mind is a framed text with :
- one checkbox per champion
- "ok" button
- "cancel" button
Ideally I can then get which checkbox has been checked and... something happens.
I tried to understand how GUI items and GraphicsContext work, but I think I'm reaching the limits of my coding skills. I can't even manage to draw en empty rectangle. One very easy solution would be to put four levers on a wall and just check which levers were triggered, but it's quite unrealistic
.
Any hint how and where I am supposed to start?
Many thanks!
Khollik
I think I need some help from more experienced modders here...
I'm trying to implement a rectangle of text which pops up at a certain point of my mod, and then asks the player to choose two of his/her champions. what I have in mind is a framed text with :
- one checkbox per champion
- "ok" button
- "cancel" button
Ideally I can then get which checkbox has been checked and... something happens.
I tried to understand how GUI items and GraphicsContext work, but I think I'm reaching the limits of my coding skills. I can't even manage to draw en empty rectangle. One very easy solution would be to put four levers on a wall and just check which levers were triggered, but it's quite unrealistic
Any hint how and where I am supposed to start?
Many thanks!
Khollik
