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

From Graal Bible
Line 6: Line 6:


* GUI
* GUI
** [[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
** [[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
*** 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
*** use ''globalToLocalCoord()'' and ''localToGlobalCoord()'' to translate between real mouse positions and scaled positions inside the control
* Graphics
* Graphics
** Support for 2-bit pngs
** Support for 2-bit pngs
** [[Creation/Dev/Script/Client/TShowImg|TShowImg]] / [[Creation/Dev/Script/Client/GuiShowImgCtrl|GuiShowImgCtrl]]: support for shadow
*** new variables ''textshadow'', ''shadowoffset'' and ''shadowcolor''
*** set textshadow = true to enable the shadow (defaults to nickname shadows)
*** modify shadowoffset or shadowcolor to set a custom shadow look
*** shadowoffset is by default {1,1}
*** shadowcolor is by default {0,0,0} (black)


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

Revision as of 19:04, 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
    • TShowImg / GuiShowImgCtrl: support for shadow
      • new variables textshadow, shadowoffset and shadowcolor
      • set textshadow = true to enable the shadow (defaults to nickname shadows)
      • modify shadowoffset or shadowcolor to set a custom shadow look
      • shadowoffset is by default {1,1}
      • shadowcolor is by default {0,0,0} (black)

Bug Fixes