|
UFO: Alien Invasion
|
Editor is an invisible node used to create an edition mode. The edition mode allow user to move and resize all visible nodes. More...
#include "../ui_main.h"#include "../ui_parse.h"#include "../ui_behaviour.h"#include "../ui_draw.h"#include "../ui_input.h"#include "../ui_nodes.h"#include "../ui_windows.h"#include "../ui_render.h"#include "../ui_actions.h"#include "ui_node_editor.h"#include "ui_node_abstractnode.h"#include "../../input/cl_keys.h"#include "../../input/cl_input.h"#include "../../../common/scripts_lua.h"
Go to the source code of this file.
Enumerations | |
| enum | zoneNode_t { ZONE_NONE = -1 , ZONE_TOPRIGHT_CORNER , ZONE_TOPLEFT_CORNER , ZONE_BOTTOMRIGHT_CORNER , ZONE_BOTTOMLEFT_CORNER , ZONE_BODY } |
Functions | |
| static void | UI_EditorNodeHighlightNode (uiNode_t *node, const vec4_t color, bool displayAnchor) |
| static zoneNode_t | UI_EditorNodeGetElementAtPosition (uiNode_t *node, int x, int y) |
| static void | UI_EditorNodeSelectNode (uiNode_t *node, uiNode_t *selected) |
| static void | UI_EditorNodeStart (uiNode_t *node, const uiCallContext_t *context) |
| static void | UI_EditorNodeStop (uiNode_t *node, const uiCallContext_t *context) |
| static void | UI_EditorNodeSelectNext (uiNode_t *node, const uiCallContext_t *context) |
| static void | UI_EditorNodeSelectParent (uiNode_t *node, const uiCallContext_t *context) |
| static void | UI_EditorNodeSelectFirstChild (uiNode_t *node, const uiCallContext_t *context) |
| static void | UI_EditorNodeExtractNode (qFILE *file, uiNode_t *node, int depth) |
| static void | UI_EditorNodeExtract_f (void) |
| void | UI_RegisterEditorNode (uiBehaviour_t *behaviour) |
Variables | |
| static uiNode_t * | anchoredNode = nullptr |
| static const vec4_t | red = {1.0, 0.0, 0.0, 1.0} |
| static const vec4_t | grey = {0.8, 0.8, 0.8, 1.0} |
| static const int | anchorSize = 10 |
| static zoneNode_t | dragStatus = ZONE_NONE |
| static int | startX |
| static int | startY |
Editor is an invisible node used to create an edition mode. The edition mode allow user to move and resize all visible nodes.
Definition in file ui_node_editor.cpp.
| enum zoneNode_t |
| Enumerator | |
|---|---|
| ZONE_NONE | |
| ZONE_TOPRIGHT_CORNER | |
| ZONE_TOPLEFT_CORNER | |
| ZONE_BOTTOMRIGHT_CORNER | |
| ZONE_BOTTOMLEFT_CORNER | |
| ZONE_BODY | |
Definition at line 45 of file ui_node_editor.cpp.
Definition at line 330 of file ui_node_editor.cpp.
References Cmd_Argc(), Cmd_Argv(), Com_Printf(), FILE_WRITE, FS_OpenFile(), uiNode_t::name, UI_EditorNodeExtractNode(), UI_GetWindow(), and va().
Referenced by UI_RegisterEditorNode().
Definition at line 292 of file ui_node_editor.cpp.
References uiNode_t::behaviour, uiNode_t::box, uiNode_t::firstChild, FS_Printf(), i, uiBehaviour_t::name, uiNode_t::name, uiNode_t::next, uiBox_t::pos, uiBox_t::size, and UI_EditorNodeExtractNode().
Referenced by UI_EditorNodeExtract_f(), and UI_EditorNodeExtractNode().
|
static |
Definition at line 78 of file ui_node_editor.cpp.
References anchoredNode, anchorSize, uiNode_t::box, uiBox_t::size, UI_NodeAbsoluteToRelativePos(), ZONE_BODY, ZONE_BOTTOMLEFT_CORNER, ZONE_BOTTOMRIGHT_CORNER, ZONE_NONE, ZONE_TOPLEFT_CORNER, and ZONE_TOPRIGHT_CORNER.
Referenced by uiEditorNode::drawOverWindow(), and uiEditorNode::onMouseDown().
Definition at line 63 of file ui_node_editor.cpp.
References anchorSize, uiNode_t::box, uiBox_t::size, UI_DrawFill(), UI_DrawRect(), and UI_GetNodeAbsPos().
Referenced by uiEditorNode::drawOverWindow().
|
static |
Definition at line 283 of file ui_node_editor.cpp.
References anchoredNode, dragStatus, UI_EditorNodeSelectNode(), and ZONE_NONE.
Referenced by UI_RegisterEditorNode().
|
static |
Definition at line 265 of file ui_node_editor.cpp.
References anchoredNode, dragStatus, UI_EditorNodeSelectNode(), and ZONE_NONE.
Referenced by UI_RegisterEditorNode().
Definition at line 204 of file ui_node_editor.cpp.
References anchoredNode, Cvar_Set(), and uiNode_t::root.
Referenced by uiEditorNode::onMouseDown(), UI_EditorNodeSelectFirstChild(), UI_EditorNodeSelectNext(), and UI_EditorNodeSelectParent().
|
static |
Definition at line 274 of file ui_node_editor.cpp.
References anchoredNode, dragStatus, UI_EditorNodeSelectNode(), and ZONE_NONE.
Referenced by UI_RegisterEditorNode().
|
static |
Definition at line 255 of file ui_node_editor.cpp.
References UI_SetMouseCapture().
Referenced by UI_RegisterEditorNode().
|
static |
Definition at line 260 of file ui_node_editor.cpp.
References UI_MouseRelease().
Referenced by UI_RegisterEditorNode().
| void UI_RegisterEditorNode | ( | uiBehaviour_t * | behaviour | ) |
Definition at line 349 of file ui_node_editor.cpp.
References Cmd_AddCommand(), Cmd_AddParamCompleteFunction(), uiBehaviour_t::lua_SWIG_typeinfo, uiBehaviour_t::manager, uiBehaviour_t::name, UI_CompleteWithWindow(), UI_EditorNodeExtract_f(), UI_EditorNodeSelectFirstChild(), UI_EditorNodeSelectNext(), UI_EditorNodeSelectParent(), UI_EditorNodeStart(), UI_EditorNodeStop(), UI_RegisterNodeMethod(), and UI_SWIG_TypeQuery().
Definition at line 55 of file ui_node_editor.cpp.
Referenced by uiEditorNode::drawOverWindow(), uiEditorNode::onCapturedMouseMove(), uiEditorNode::onMouseDown(), UI_EditorNodeGetElementAtPosition(), UI_EditorNodeSelectFirstChild(), UI_EditorNodeSelectNext(), UI_EditorNodeSelectNode(), and UI_EditorNodeSelectParent().
|
static |
Definition at line 58 of file ui_node_editor.cpp.
Referenced by UI_EditorNodeGetElementAtPosition(), and UI_EditorNodeHighlightNode().
|
static |
Definition at line 59 of file ui_node_editor.cpp.
Referenced by uiEditorNode::drawOverWindow(), uiEditorNode::onCapturedMouseLost(), uiEditorNode::onCapturedMouseMove(), uiEditorNode::onMouseDown(), uiEditorNode::onMouseUp(), UI_EditorNodeSelectFirstChild(), UI_EditorNodeSelectNext(), and UI_EditorNodeSelectParent().
|
static |
Definition at line 57 of file ui_node_editor.cpp.
Referenced by uiEditorNode::drawOverWindow().
|
static |
Definition at line 56 of file ui_node_editor.cpp.
|
static |
Definition at line 60 of file ui_node_editor.cpp.
Referenced by uiEditorNode::onCapturedMouseMove(), uiEditorNode::onMouseDown(), uiGeoscapeNode::onStartDragging(), uiLocatedNode::onStartDragging(), uiPanelNode::onStartDragging(), and UI_Node_StartDragging().
|
static |
Definition at line 61 of file ui_node_editor.cpp.
Referenced by uiEditorNode::onCapturedMouseMove(), uiEditorNode::onMouseDown(), uiGeoscapeNode::onStartDragging(), uiLocatedNode::onStartDragging(), uiPanelNode::onStartDragging(), and UI_Node_StartDragging().