
Prototype: AdjustScrolling(WindowIndex, ControlIndex, x, y)

Metaclass Prototype: AdjustScrolling(x, y)

Description: Sets the scrolling offset of a WorldMapControl.

Parameters: WindowIndex, ControlIndex  - the control's reference
x,y - scrolling offset values

Return value: N/A

Example:
        #northeast
        Button = GemRB.GetControl (Window, 9)
        GemRB.SetEvent (Window, Button, IE_GUI_BUTTON_ON_PRESS, "MapNE")
...
def MapNE():
        GemRB.AdjustScrolling (Window, WorldMapControl, 10, -10)
        return
The above lines set up a button event. When the button is pressed the worldmap will be shifted in the northeastern direction.

See also: CreateWorldMapControl


MD5: 500775c70886362ce1ebc9353505027f
