OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: LCD on 03 Oct 2007, 20:46:14
-
is dere ny way 2 set dialogs so da player can move da controls around (i wanna have da player moving da dialog 2 order...)?
i tried movingenable... but it doesnt seem 2 work....
ny ideas ?
LCD OUT
-
movingEnabled doesn't seem to have anything to do with dragging the dialogs or controls. Either it has no effect or it has something to do with allowing the player to move.
To enable dragging:
- [Automatic] Make a 3d object, onto which you can paste the 2d dialog components (like the notepad in the map screen). This doesn't seem to work in description.ext dialogs (I've tried it), so, assuming that it isn't just a BIS-only capability, you'd need to put it in an addon.
- [Manual] Capture onMouseButtonDown onMouseButtonUp and onMouseMoving events and move each of the controls yourself.
-
- [Manual] Capture onMouseButtonDown onMouseButtonUp and onMouseMoving events and move each of the controls yourself.
thing i tried 2 do but... it seems dat my rscPicture (parent class BIS use) doesnt rect 2 these events.... is there nything i missed w/ dis eventhandlers ? (dey did work w/ edit fields and stuff like dat)
LCD OUT
-
It might be that the picture needs to have the focus to receive events; I know that other controls, such as the map need focus for that. Alternatively, you could ensure that there is a transparent control in front of the picture that can capture events, then move both the transparent and picture control during dragging events.
-
thx will try n report back ;) :D
LCD OUT