Creation/Dev/Releases/Client/4.11: Difference between revisions
From Graal Bible
Line 5: | Line 5: | ||
==New Features== | ==New Features== | ||
* [[Creation/Dev/Script/Client/GuiControl|GuiControl]]: | * GUI | ||
* [[Creation/Dev/Script/Client/GuiControl|GuiControl]]: | ** [[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/GuiStretchCtrl|GuiStretchCtrl]]: new GUI control which stretches the content to the current size | ** [[Creation/Dev/Script/Client/GuiControl|GuiControl]]: New function '''startDrag()''' to let the user move a control (only works when the mouse button is pressed) | ||
** define '''clientwidth''' and '''clientheight''' (or '''clientextent''') to say which area should be stretched to the actual size | ** [[Creation/Dev/Script/Client/GuiStretchCtrl|GuiStretchCtrl]]: new GUI control which stretches the content to the current size | ||
** use '''globalToLocalCoord()''' and '''localToGlobalCoord()''' to translate between real mouse positions and scaled positions inside the control | *** 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 | |||
* Graphics | |||
** Support for 2-bit pngs | |||
==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:57, 15 September 2006
Release date
September 15th 2006 for Windows and Linux
New Features
- GUI
- 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
- Graphics
- Support for 2-bit pngs
Bug Fixes
- TDrawingPanel / GuiDrawingPanel: Drawing "TILES" has been fixed