UIMapEditor Class
Method Index
- addBevelPanel(x, y, w, h, colour, highlight_colour, shadow_colour, disabled_colour) (inherited from Window)
- addColourPanel(x, y, w, h, r, g, b) (inherited from Window)
- addKeyHandler(key, handler, ...) (inherited from Window)
- addPanel(sprite_index, x, y, w, h) (inherited from Window)
- addWindow(window) (inherited from Window)
- afterLoad(old, new) (inherited from Window)
- beginDrag(x, y) (inherited from Window)
- bringToTop() (inherited from Window)
- classifyBlocks()
- close() (inherited from Window)
- doLargePaint(x, y)
- draw(canvas, ...) (overrides Window:draw)
- finishPaint(apply)
- getSavedWindowPositionName() (inherited from Window)
- getTooltipAt(x, y) (inherited from Window)
- getTooltipForElement(elem, x, y) (inherited from Window)
- getWindow(window_class) (inherited from Window)
- getWindows(window_class) (inherited from Window)
- hitTest(x, y) (inherited from Window)
- hitTestPanel(x, y, panel) (inherited from Window)
- makeButtonOnPanel(panel, x, y, w, h, sprite, on_click, on_click_self, on_rightclick) (inherited from Window)
- makeDynamicTooltip(callback, x, y, r, b, tooltip_x, tooltip_y) (inherited from Window)
- makeScrollbarOnPanel(panel, slider_colour, callback, min_value, max_value, page_size, value) (inherited from Window)
- makeTextboxOnPanel(panel, confirm_callback, abort_callback) (inherited from Window)
- makeTooltip(text, x, y, r, b, tooltip_x, tooltip_y) (inherited from Window)
- onChangeLanguage() (inherited from Window)
- onChangeResolution() (inherited from Window)
- onCursorWorldPositionChange(x, y) (inherited from Window)
- onMouseDown(button, x, y) (overrides Window:onMouseDown)
- onMouseMove(x, y, dx, dy) (overrides Window:onMouseMove)
- onMouseUp(button, x, y) (overrides Window:onMouseUp)
- onTick() (inherited from Window)
- onWorldTick() (inherited from Window)
- redo()
- removeAllPanels() (inherited from Window)
- removeWindow(window) (inherited from Window)
- sampleBlock(x, y)
- sendToBottom(window) (inherited from Window)
- sendToTop(window) (inherited from Window)
- setBlockBrush(f, w1, w2)
- setBlockBrushParcel(parcel)
- setDefaultPosition(x, y) (inherited from Window)
- setPaintRect(x, y, w, h, xstep, ystep)
- setPosition(x, y) (inherited from Window)
- startButtonBlinking(button_index) (inherited from Window)
- startPaint(x, y)
- stopButtonBlinking() (inherited from Window)
- undo()
Member Index
- active_button (*)
- active_scrollbar (*)
- blink_counter (*)
- blinking_button (*)
- block_brush_f
- block_brush_parcel
- block_brush_preview
- block_brush_w1
- block_brush_w2
- block_info
- btn_repeat_delay (*)
- buttons (*)
- buttons_down
- cell_outline
- closed (*)
- command_stack
- current_command
- current_command_cell
- current_command_cell_flags
- default_button_sound (*)
- draggable (*)
- dragging (*)
- has_paint_null_area
- height
- key_handlers (*)
- mouse_cell_x
- mouse_cell_y
- old_floors
- paint_rect
- paint_start_wx
- paint_start_wy
- paint_step_x
- paint_step_y
- panel_sprites (*)
- panels (*)
- parent (*)
- recent_sample_x
- recent_sample_y
- sample_i
- scrollbars (*)
- textboxes (*)
- tooltip_regions (*)
- ui
- visible (*)
- width
- windows (*)
- x
- x_original (*)
- y
- y_original (*)
function UIMapEditor:UIMapEditor(ui)
Parameters:
Name | Type | Description |
---|---|---|
ui | ? | ? |
Declared on: line 32 of Lua/dialogs/map_editor.lua.
function UIMapEditor:doLargePaint(x, y)
Parameters:
Name | Type | Description |
---|---|---|
x | ? | ? |
y | ? | ? |
Declared on: line 318 of Lua/dialogs/map_editor.lua.
function UIMapEditor:draw(canvas, ...)
Parameters:
Name | Type | Description |
---|---|---|
canvas | ? | ? |
... | ? | ? |
Overrides: Window:draw.
Declared on: line 157 of Lua/dialogs/map_editor.lua.
function UIMapEditor:finishPaint(apply)
Remove the paint preview from the UI layer, and optionally apply the paint
to the actual layers.
Parameters:
Name | Type | Description |
---|---|---|
apply | ? | ? |
Declared on: line 395 of Lua/dialogs/map_editor.lua.
function UIMapEditor:onMouseDown(button, x, y)
Parameters:
Name | Type | Description |
---|---|---|
button | ? | ? |
x | ? | ? |
y | ? | ? |
Overrides: Window:onMouseDown.
Declared on: line 234 of Lua/dialogs/map_editor.lua.
function UIMapEditor:onMouseMove(x, y, dx, dy)
Parameters:
Name | Type | Description |
---|---|---|
x | ? | ? |
y | ? | ? |
dx | ? | ? |
dy | ? | ? |
Overrides: Window:onMouseMove.
Declared on: line 166 of Lua/dialogs/map_editor.lua.
function UIMapEditor:onMouseUp(button, x, y)
Parameters:
Name | Type | Description |
---|---|---|
button | ? | ? |
x | ? | ? |
y | ? | ? |
Overrides: Window:onMouseUp.
Declared on: line 269 of Lua/dialogs/map_editor.lua.
function UIMapEditor:sampleBlock(x, y)
Parameters:
Name | Type | Description |
---|---|---|
x | ? | ? |
y | ? | ? |
Declared on: line 579 of Lua/dialogs/map_editor.lua.
function UIMapEditor:setBlockBrush(f, w1, w2)
Called by the UI to set what should be painted.
Parameters:
Name | Type | Description |
---|---|---|
f | ? | ? |
w1 | ? | ? |
w2 | ? | ? |
Declared on: line 627 of Lua/dialogs/map_editor.lua.
function UIMapEditor:setBlockBrushParcel(parcel)
Parameters:
Name | Type | Description |
---|---|---|
parcel | ? | ? |
Declared on: line 642 of Lua/dialogs/map_editor.lua.
function UIMapEditor:setPaintRect(x, y, w, h, xstep, ystep)
Move/resize the rectangle to be painted, and update the UI preview layer
to reflect the new rectangle.
Parameters:
Name | Type | Description |
---|---|---|
x | ? | ? |
y | ? | ? |
w | ? | ? |
h | ? | ? |
xstep | ? | ? |
ystep | ? | ? |
Declared on: line 492 of Lua/dialogs/map_editor.lua.
function UIMapEditor:startPaint(x, y)
Parameters:
Name | Type | Description |
---|---|---|
x | ? | ? |
y | ? | ? |
Declared on: line 286 of Lua/dialogs/map_editor.lua.