Gumps

Gump include and examples.

Including Code

include ":gumps:gumps";

Basics

GFCreateGump()

GFCreateGump( x:=0, y:=0, width:=0, height:=0 );

GFGumpPic()

Adds a graphic to the gump, where [id] is the graphic id of an item. For example use InsideUO to get them. Optionaly there is a color parameter. The class parameter is also optional, triggers special behavior.

GFGumpPic( gump, x, y, gump_id, hue := 0 );

GFTilePic()

Adds a Tilepicture to the gump. [id] defines the tile graphic-id. For example use InsideUO to get them.

GFTilePic( gump, x, y, tile_id, hue := 0 );

GFResizePic()

Similar to GumpPic but the pic is automatically resized to the given [width] and [height].

GFSendGump()

Send gump to display.

GFExtractData()

Permissions

GFMovable()

Locks the gump in his position. Movement is not allowed.

GFDisposable()

Prevents that the gump can be closed by hitting Esc.

GFClosable()

Text Output

GFTextLine()

Defines the position and color of a text (data) entry.

GFTextCrop()

Adds a text field to the gump. This is similar to the text command, but the text is cropped to the defined area.

GFHTMLArea()

Defines a text-area where Html-commands are allowed. [background] and [scrollbar] can be 0 or 1 and define whether the background is transparent and a scrollbar s displayed.

GFDrawWrappedText()

Buttons

GFAddButton()

Adds a button to the gump with the specified coordinates and button graphics. [released-id] and [pressed-id] specify the buttongraphic. If pressed check for [return-value]. Use [page-id] to switch between pages and [quit]=1/0 to close the gump.

Parameters

Description

btn_type

CONSTants for the GFAddButton() function:

  • GF_PAGE_BTN

  • GF_CLOSE_BTN

  • GF_DUMMY_BTN

GFRadioButton()

Same as Checkbox, but only one Radiobutton can be pressed at the same time, except they are per linked via the 'Group' command.

GFSetRadioGroup()

GFCheckBox()

Adds a CheckBox to the gump. Multiple CheckBoxes can be pressed at the same time. Check the [return-value] if you want to know which CheckBoxes were selected.

Input

GFTextEntry()

Defines an area where the is displayed. The player can modify this data. To get this data check the [return-value].

GFPage()

Specifies which page to define. Page 0 is the background thus always visible.

Last updated

Was this helpful?