(done) Active/dead zone for hand vs arrow pointer?

This forum is for the Lua scriptable clone of DM/CSB called Dungeon Strikes Back by Sophia. Use DSB to build your own highly customised games.

Moderator: Sophia

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
Gambit37
Should eat more pies
Posts: 13720
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

(done) Active/dead zone for hand vs arrow pointer?

Post by Gambit37 »

I've got my new UI working fully in DSB. I've changed the size and position of many things.

One weird side effect is that DSB now thinks there's "dead" space where there shouldn't be. For example, when I'm moving the mouse cursor around it changes from a hand to an arrow in the wrong place. If there's an item in the mouse hand, this looks especially strange when it disappears. The dead space zone is roughly shown below in purple.

It seems like DSB is not respecting the new height/position of my gui_info.portraits and still expects things in the DM positions. Is it possible to make it so I can specify a height here (which would presumably fix this "dead" zone)???

Image
User avatar
Sophia
Concise and Honest
Posts: 4240
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: Active/dead zone for hand vs arrow pointer?

Post by Sophia »

Oh, somehow I missed some hardcoded data. For 0.72 I'll add gui_info.portraits.hand_zone_w and gui_info.portraits.hand_zone_h which will let you specify the size of the area where portraits should draw a hand instead of an arrow.
User avatar
Gambit37
Should eat more pies
Posts: 13720
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: (done) Active/dead zone for hand vs arrow pointer?

Post by Gambit37 »

Perfect, thank you very much :)
User avatar
meadwarrior
Journeyman
Posts: 91
Joined: Sat Dec 01, 2018 1:02 am

Re: (done) Active/dead zone for hand vs arrow pointer?

Post by meadwarrior »

Nice!
Post Reply