Creation/Dev/Releases/Client/4.11: Difference between revisions

From Graal Bible
Line 7: Line 7:
* [[Creation/Dev/Script/Client/GuiControl|GuiControl]]: new events '''onStartDrag''' and '''onStopDrag''' when a control has been dragged with the mouse (canmove=true)
* [[Creation/Dev/Script/Client/GuiControl|GuiControl]]: new events '''onStartDrag''' and '''onStopDrag''' when a control has been dragged with the mouse (canmove=true)
* [[Creation/Dev/Script/Client/GuiControl|GuiControl]]: new function '''startDrag()''' to let the user move a control (only works when the mouse button is pressed)
* [[Creation/Dev/Script/Client/GuiControl|GuiControl]]: new function '''startDrag()''' to let the user move a control (only works when the mouse button is pressed)
* [[Creation/Dev/Script/Client/GuiStretchCtrl|GuiStretchCtrl]]: new GUI control which stretches the content to the current size
** define '''clientwidth''' and '''clientheight''' (or '''clientextent''') to say which area should be stretched to the actual size
** use '''globalToLocalCoord()''' and '''localToGlobalCoord()''' to translate between real mouse positions and scaled positions inside the control


==Bug Fixes==
==Bug Fixes==


* [[Creation/Dev/Script/Client/TDrawingPanel|TDrawingPanel]]  / [[Creation/Dev/Script/Client/GuiDrawingPanel|GuiDrawingPanel]]: Drawing "TILES" has been fixed
* [[Creation/Dev/Script/Client/TDrawingPanel|TDrawingPanel]]  / [[Creation/Dev/Script/Client/GuiDrawingPanel|GuiDrawingPanel]]: Drawing "TILES" has been fixed

Revision as of 18:55, 15 September 2006

Release date

September 15th 2006 for Windows and Linux

New Features

  • GuiControl: new events onStartDrag and onStopDrag when a control has been dragged with the mouse (canmove=true)
  • GuiControl: new function startDrag() to let the user move a control (only works when the mouse button is pressed)
  • GuiStretchCtrl: new GUI control which stretches the content to the current size
    • define clientwidth and clientheight (or clientextent) to say which area should be stretched to the actual size
    • use globalToLocalCoord() and localToGlobalCoord() to translate between real mouse positions and scaled positions inside the control

Bug Fixes