naev 0.12.5
dev_sysedit.c File Reference

Handles the star system editor. More...

#include <libgen.h>
#include "dev_sysedit.h"
#include "array.h"
#include "conf.h"
#include "dev_spob.h"
#include "dev_system.h"
#include "dev_uniedit.h"
#include "dialogue.h"
#include "economy.h"
#include "ndata.h"
#include "nstring.h"
#include "opengl.h"
#include "opengl_render.h"
#include "safelanes.h"
#include "space.h"
#include "toolkit.h"
Include dependency graph for dev_sysedit.c:

Go to the source code of this file.

Data Structures

struct  Select_t
 Selection generic for stuff in a system. More...

Macros

#define BUTTON_WIDTH   100
#define BUTTON_HEIGHT   30
#define SYSEDIT_EDIT_WIDTH   500
#define SYSEDIT_EDIT_HEIGHT   400
#define SYSEDIT_DRAG_THRESHOLD   300
#define SYSEDIT_MOVE_THRESHOLD   10
#define SYSEDIT_ZOOM_STEP   1.2
#define SYSEDIT_ZOOM_MAX   1
#define SYSEDIT_ZOOM_MIN   -23

Enumerations

enum  {
  SELECT_NONE , SELECT_SPOB , SELECT_JUMPPOINT , SELECT_ASTEROID ,
  SELECT_ASTEXCLUDE
}

Functions

static void sysedit_buttonZoom (unsigned int wid, const char *str)
 Handles the button zoom clicks.
static void sysedit_render (double bx, double by, double w, double h, void *data)
 System editor custom widget rendering.
static void sysedit_renderAsteroidsField (double bx, double by, const AsteroidAnchor *ast, int selected)
 Draws an asteroid field on the map.
static void sysedit_renderAsteroidExclusion (double bx, double by, const AsteroidExclusion *aexcl, int selected)
 Draws an asteroid exclusion zone on the map.
static void sysedit_renderBG (double bx, double by, double w, double h, double x, double y)
 Renders the custom widget background.
static void sysedit_renderSprite (const glTexture *gfx, double bx, double by, double x, double y, int sx, int sy, const glColour *c, int selected, const char *caption)
 Renders a sprite for the custom widget.
static void sysedit_focusLose (unsigned int wid, const char *wgtname)
 Called when it's de-focused.
static int sysedit_mouseTrySelect (const Select_t *sel, double x, double y, double t, double mx, double my, SDL_Keymod mod, void(*func)(void))
static int sysedit_mouse (unsigned int wid, const SDL_Event *event, double mx, double my, double w, double h, double xr, double yr, void *data)
 System editor custom widget mouse handling.
static void sysedit_close (unsigned int wid, const char *wgt)
 Closes the system editor widget.
static void sysedit_btnNewSpob (unsigned int wid_unused, const char *unused)
 Enters the editor in new spob mode.
static void sysedit_btnNewAsteroids (unsigned int wid_unused, const char *unused)
 Enters the editor in new spob mode.
static UniAttribute_tsysedit_asteroidsAttr (const AsteroidAnchor *ast)
static void sysedit_btnRename (unsigned int wid_unused, const char *unused)
static void sysedit_btnRemove (unsigned int wid_unused, const char *unused)
 Removes spobs.
static void sysedit_btnReset (unsigned int wid_unused, const char *unused)
 Resets jump points.
static void sysedit_btnScale (unsigned int wid_unused, const char *unused)
 Interface for scaling a system from the system view.
static void sysedit_btnGrid (unsigned int wid_unused, const char *unused)
 Toggles the grid.
static void sysedit_btnEdit (unsigned int wid_unused, const char *unused)
 Opens the system property editor.
static void sysedit_editPnt (void)
 Edits a spob.
static void sysedit_editPntClose (unsigned int wid, const char *unused)
 Closes the spob editor, saving the changes made.
static void sysedit_spobDesc (unsigned int wid, const char *unused)
 Displays the spob landing description and bar description in a separate window.
static void sysedit_spobDescReturn (unsigned int wid, const char *unused)
 Closes the spob description window and returns to the properties window.
static void sysedit_spobDescClose (unsigned int wid, const char *unused)
 Closes both the spob description window and the properties window.
static void sysedit_genServicesList (unsigned int wid)
 Generates the spob services list.
static void sysedit_btnTechEdit (unsigned int wid, const char *unused)
 Edits a spob's tech.
static void sysedit_genTechList (unsigned int wid)
 Generates the spob tech list.
static void sysedit_btnAddTech (unsigned int wid, const char *unused)
 Adds a tech to a spob.
static void sysedit_btnRmTech (unsigned int wid, const char *unused)
 Removes a tech from a spob.
static void sysedit_btnTagsEdit (unsigned int wid, const char *unused)
 Edits a spob's tags.
static void sysedit_genTagsList (unsigned int wid)
 Generates the spob tech list.
static void sysedit_btnAddTag (unsigned int wid, const char *unused)
 Adds a tech to a spob.
static void sysedit_btnRmTag (unsigned int wid, const char *unused)
 Removes a tech from a spob.
static void sysedit_btnNewTag (unsigned int wid, const char *unused)
 Adds a tech to a spob.
static void sysedit_btnTagsClose (unsigned int wid, const char *unused)
static void sysedit_btnAddService (unsigned int wid, const char *unused)
 Adds a service to a spob.
static void sysedit_btnRmService (unsigned int wid, const char *unused)
 Removes a service from a spob.
static void sysedit_spobGFX (unsigned int wid_unused, const char *wgt)
 Opens the spob landing or space graphic editor.
static void sysedit_btnGFXClose (unsigned int wid, const char *wgt)
 Closes the spob graphic editor.
static void sysedit_btnGFXApply (unsigned int wid, const char *wgt)
 Apply new graphics.
static void sysedit_btnFaction (unsigned int wid_unused, const char *unused)
 Edits a spob's faction.
static void sysedit_btnFactionSet (unsigned int wid, const char *unused)
 Actually modifies the faction.
static void sysedit_editJump (void)
 Edits a jump.
static void sysedit_editJumpClose (unsigned int wid, const char *unused)
 Closes the jump editor, saving the changes made.
static void sysedit_editAsteroids (void)
 Opens the asteroid editor.
static void sysedit_editAsteroidsClose (unsigned int wid, const char *unused)
static void sysedit_genAsteroidsList (unsigned int wid)
static void sysedit_btnAsteroidsDelete (unsigned int wid, const char *unused)
static void sysedit_btnRmAsteroid (unsigned int wid, const char *unused)
static void sysedit_btnAddAsteroid (unsigned int wid, const char *unused)
static void sysedit_editExclusion (void)
static void sysedit_editExclusionClose (unsigned int wid, const char *unused)
static void sysedit_btnExclusionDelete (unsigned int wid, const char *unused)
static int sysedit_keys (unsigned int wid, SDL_Keycode key, SDL_Keymod mod, int isrepeat)
 Handles keybindings.
static int sysedit_selectCmp (const Select_t *a, const Select_t *b)
 Compares two selections to see if they are the same.
static int sysedit_isSelected (const Select_t *sel)
 Check to see if something is selected.
static void sysedit_checkButtons (void)
 Checks to see which buttons should be active and the likes.
static void sysedit_deselect (void)
 Deselects everything.
static void sysedit_selectAdd (const Select_t *sel)
 Adds a system to the selection.
static void sysedit_selectRm (const Select_t *sel)
 Removes a system from the selection.
static void sysedit_diffCreateSpobStr (const Spob *spb, UniHunkType_t type, char *str)
static void sysedit_diffCreateSpobInt (const Spob *spb, UniHunkType_t type, int data)
static void sysedit_diffCreateSpobFloat (const Spob *spb, UniHunkType_t type, double fdata)
void sysedit_open (StarSystem *sys)
 Opens the system editor interface.
void sysedit_sysScale (StarSystem *sys, double factor)
 Scales a system.
static void jp_type_check_hidden_update (unsigned int wid, const char *str)
 Updates the jump point checkboxes.
static void jp_type_check_exit_update (unsigned int wid, const char *str)
 Updates the jump point checkboxes.
static void jp_type_check_nolanes_update (unsigned int wid, const char *str)
 Updates the jump point checkboxes.

Variables

static Select_tsysedit_select = NULL
static int sysedit_nselect = 0
static int sysedit_mselect = 0
static Select_t sysedit_tsel
static int sysedit_tadd = 0
static char ** sysedit_tagslist = NULL
static StarSystem * sysedit_sys = NULL
static unsigned int sysedit_wid = 0
static unsigned int sysedit_widEdit = 0
static int sysedit_grid = 1
static double sysedit_xpos = 0.
static double sysedit_ypos = 0.
static double sysedit_zoom = 1.
static int sysedit_moved = 0
static unsigned int sysedit_dragTime = 0
static int sysedit_drag = 0
static int sysedit_dragSel = 0
static double sysedit_mx = 0.
static double sysedit_my = 0.
static int jp_hidden = 0
static int jp_exit = 0

Detailed Description

Handles the star system editor.

Definition in file dev_sysedit.c.

Macro Definition Documentation

◆ BUTTON_HEIGHT

#define BUTTON_HEIGHT   30

Map button height.

Definition at line 36 of file dev_sysedit.c.

◆ BUTTON_WIDTH

#define BUTTON_WIDTH   100

Map button width.

Definition at line 35 of file dev_sysedit.c.

◆ SYSEDIT_DRAG_THRESHOLD

#define SYSEDIT_DRAG_THRESHOLD   300

Drag threshold.

Definition at line 41 of file dev_sysedit.c.

◆ SYSEDIT_EDIT_HEIGHT

#define SYSEDIT_EDIT_HEIGHT   400

System editor height.

Definition at line 39 of file dev_sysedit.c.

◆ SYSEDIT_EDIT_WIDTH

#define SYSEDIT_EDIT_WIDTH   500

System editor width.

Definition at line 38 of file dev_sysedit.c.

◆ SYSEDIT_MOVE_THRESHOLD

#define SYSEDIT_MOVE_THRESHOLD   10

Movement threshold.

Definition at line 42 of file dev_sysedit.c.

◆ SYSEDIT_ZOOM_MAX

#define SYSEDIT_ZOOM_MAX   1

Maximum zoom level (close).

Definition at line 45 of file dev_sysedit.c.

◆ SYSEDIT_ZOOM_MIN

#define SYSEDIT_ZOOM_MIN   -23

Minimum zoom level (far).

Definition at line 46 of file dev_sysedit.c.

◆ SYSEDIT_ZOOM_STEP

#define SYSEDIT_ZOOM_STEP   1.2

Factor to zoom by for each zoom level.

Definition at line 44 of file dev_sysedit.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SELECT_NONE 

No selection.

SELECT_SPOB 

Selection is a spob.

SELECT_JUMPPOINT 

Selection is a jump point.

SELECT_ASTEROID 

Selection is an asteroid.

SELECT_ASTEXCLUDE 

Selection is an asteroid exclusion zone.

Definition at line 51 of file dev_sysedit.c.

Function Documentation

◆ jp_type_check_exit_update()

void jp_type_check_exit_update ( unsigned int wid,
const char * str )
static

Updates the jump point checkboxes.

Definition at line 1819 of file dev_sysedit.c.

◆ jp_type_check_hidden_update()

void jp_type_check_hidden_update ( unsigned int wid,
const char * str )
static

Updates the jump point checkboxes.

Definition at line 1804 of file dev_sysedit.c.

◆ jp_type_check_nolanes_update()

void jp_type_check_nolanes_update ( unsigned int wid,
const char * str )
static

Updates the jump point checkboxes.

Definition at line 1834 of file dev_sysedit.c.

◆ sysedit_asteroidsAttr()

UniAttribute_t * sysedit_asteroidsAttr ( const AsteroidAnchor * ast)
static

Definition at line 620 of file dev_sysedit.c.

◆ sysedit_btnAddAsteroid()

void sysedit_btnAddAsteroid ( unsigned int wid,
const char * unused )
static

Definition at line 2152 of file dev_sysedit.c.

◆ sysedit_btnAddService()

void sysedit_btnAddService ( unsigned int wid,
const char * unused )
static

Adds a service to a spob.

Definition at line 2560 of file dev_sysedit.c.

◆ sysedit_btnAddTag()

void sysedit_btnAddTag ( unsigned int wid,
const char * unused )
static

Adds a tech to a spob.

Definition at line 2936 of file dev_sysedit.c.

◆ sysedit_btnAddTech()

void sysedit_btnAddTech ( unsigned int wid,
const char * unused )
static

Adds a tech to a spob.

Definition at line 2736 of file dev_sysedit.c.

◆ sysedit_btnAsteroidsDelete()

void sysedit_btnAsteroidsDelete ( unsigned int wid,
const char * unused )
static

Definition at line 2179 of file dev_sysedit.c.

◆ sysedit_btnEdit()

void sysedit_btnEdit ( unsigned int wid_unused,
const char * unused )
static

Opens the system property editor.

Definition at line 3109 of file dev_sysedit.c.

◆ sysedit_btnExclusionDelete()

void sysedit_btnExclusionDelete ( unsigned int wid,
const char * unused )
static

Definition at line 2330 of file dev_sysedit.c.

◆ sysedit_btnFaction()

void sysedit_btnFaction ( unsigned int wid_unused,
const char * unused )
static

Edits a spob's faction.

Definition at line 3020 of file dev_sysedit.c.

◆ sysedit_btnFactionSet()

void sysedit_btnFactionSet ( unsigned int wid,
const char * unused )
static

Actually modifies the faction.

Definition at line 3076 of file dev_sysedit.c.

◆ sysedit_btnGFXApply()

void sysedit_btnGFXApply ( unsigned int wid,
const char * wgt )
static

Apply new graphics.

Definition at line 3211 of file dev_sysedit.c.

◆ sysedit_btnGFXClose()

void sysedit_btnGFXClose ( unsigned int wid,
const char * wgt )
static

Closes the spob graphic editor.

Definition at line 3203 of file dev_sysedit.c.

◆ sysedit_btnGrid()

void sysedit_btnGrid ( unsigned int wid_unused,
const char * unused )
static

Toggles the grid.

Definition at line 891 of file dev_sysedit.c.

◆ sysedit_btnNewAsteroids()

void sysedit_btnNewAsteroids ( unsigned int wid_unused,
const char * unused )
static

Enters the editor in new spob mode.

Definition at line 539 of file dev_sysedit.c.

◆ sysedit_btnNewSpob()

void sysedit_btnNewSpob ( unsigned int wid_unused,
const char * unused )
static

Enters the editor in new spob mode.

Definition at line 460 of file dev_sysedit.c.

◆ sysedit_btnNewTag()

void sysedit_btnNewTag ( unsigned int wid,
const char * unused )
static

Adds a tech to a spob.

Definition at line 2992 of file dev_sysedit.c.

◆ sysedit_btnRemove()

void sysedit_btnRemove ( unsigned int wid_unused,
const char * unused )
static

Removes spobs.

Definition at line 706 of file dev_sysedit.c.

◆ sysedit_btnRename()

void sysedit_btnRename ( unsigned int wid_unused,
const char * unused )
static

Definition at line 630 of file dev_sysedit.c.

◆ sysedit_btnReset()

void sysedit_btnReset ( unsigned int wid_unused,
const char * unused )
static

Resets jump points.

Definition at line 781 of file dev_sysedit.c.

◆ sysedit_btnRmAsteroid()

void sysedit_btnRmAsteroid ( unsigned int wid,
const char * unused )
static

Definition at line 2122 of file dev_sysedit.c.

◆ sysedit_btnRmService()

void sysedit_btnRmService ( unsigned int wid,
const char * unused )
static

Removes a service from a spob.

Definition at line 2592 of file dev_sysedit.c.

◆ sysedit_btnRmTag()

void sysedit_btnRmTag ( unsigned int wid,
const char * unused )
static

Removes a tech from a spob.

Definition at line 2960 of file dev_sysedit.c.

◆ sysedit_btnRmTech()

void sysedit_btnRmTech ( unsigned int wid,
const char * unused )
static

Removes a tech from a spob.

Definition at line 2760 of file dev_sysedit.c.

◆ sysedit_btnScale()

void sysedit_btnScale ( unsigned int wid_unused,
const char * unused )
static

Interface for scaling a system from the system view.

Definition at line 805 of file dev_sysedit.c.

◆ sysedit_btnTagsClose()

void sysedit_btnTagsClose ( unsigned int wid,
const char * unused )
static

Definition at line 2846 of file dev_sysedit.c.

◆ sysedit_btnTagsEdit()

void sysedit_btnTagsEdit ( unsigned int wid,
const char * unused )
static

Edits a spob's tags.

Definition at line 2788 of file dev_sysedit.c.

◆ sysedit_btnTechEdit()

void sysedit_btnTechEdit ( unsigned int wid,
const char * unused )
static

Edits a spob's tech.

Definition at line 2626 of file dev_sysedit.c.

◆ sysedit_buttonZoom()

void sysedit_buttonZoom ( unsigned int wid,
const char * str )
static

Handles the button zoom clicks.

Parameters
widUnused.
strName of the button creating the event.

Definition at line 1496 of file dev_sysedit.c.

◆ sysedit_checkButtons()

void sysedit_checkButtons ( void )
static

Checks to see which buttons should be active and the likes.

Definition at line 1538 of file dev_sysedit.c.

◆ sysedit_close()

void sysedit_close ( unsigned int wid,
const char * wgt )
static

Closes the system editor widget.

Definition at line 322 of file dev_sysedit.c.

◆ sysedit_deselect()

void sysedit_deselect ( void )
static

Deselects everything.

Definition at line 1523 of file dev_sysedit.c.

◆ sysedit_diffCreateSpobFloat()

void sysedit_diffCreateSpobFloat ( const Spob * spb,
UniHunkType_t type,
double fdata )
static

Definition at line 3275 of file dev_sysedit.c.

◆ sysedit_diffCreateSpobInt()

void sysedit_diffCreateSpobInt ( const Spob * spb,
UniHunkType_t type,
int data )
static

Definition at line 3263 of file dev_sysedit.c.

◆ sysedit_diffCreateSpobStr()

void sysedit_diffCreateSpobStr ( const Spob * spb,
UniHunkType_t type,
char * str )
static

Definition at line 3251 of file dev_sysedit.c.

◆ sysedit_editAsteroids()

void sysedit_editAsteroids ( void )
static

Opens the asteroid editor.

Definition at line 1947 of file dev_sysedit.c.

◆ sysedit_editAsteroidsClose()

void sysedit_editAsteroidsClose ( unsigned int wid,
const char * unused )
static

Definition at line 2214 of file dev_sysedit.c.

◆ sysedit_editExclusion()

void sysedit_editExclusion ( void )
static

Definition at line 2282 of file dev_sysedit.c.

◆ sysedit_editExclusionClose()

void sysedit_editExclusionClose ( unsigned int wid,
const char * unused )
static

Definition at line 2351 of file dev_sysedit.c.

◆ sysedit_editJump()

void sysedit_editJump ( void )
static

Edits a jump.

Definition at line 1847 of file dev_sysedit.c.

◆ sysedit_editJumpClose()

void sysedit_editJumpClose ( unsigned int wid,
const char * unused )
static

Closes the jump editor, saving the changes made.

Definition at line 1915 of file dev_sysedit.c.

◆ sysedit_editPnt()

void sysedit_editPnt ( void )
static

Edits a spob.

Definition at line 1648 of file dev_sysedit.c.

◆ sysedit_editPntClose()

void sysedit_editPntClose ( unsigned int wid,
const char * unused )
static

Closes the spob editor, saving the changes made.

Definition at line 359 of file dev_sysedit.c.

◆ sysedit_focusLose()

void sysedit_focusLose ( unsigned int wid,
const char * wgtname )
static

Called when it's de-focused.

Definition at line 1172 of file dev_sysedit.c.

◆ sysedit_genAsteroidsList()

void sysedit_genAsteroidsList ( unsigned int wid)
static

Definition at line 2056 of file dev_sysedit.c.

◆ sysedit_genServicesList()

void sysedit_genServicesList ( unsigned int wid)
static

Generates the spob services list.

Definition at line 2489 of file dev_sysedit.c.

◆ sysedit_genTagsList()

void sysedit_genTagsList ( unsigned int wid)
static

Generates the spob tech list.

Definition at line 2862 of file dev_sysedit.c.

◆ sysedit_genTechList()

void sysedit_genTechList ( unsigned int wid)
static

Generates the spob tech list.

Definition at line 2658 of file dev_sysedit.c.

◆ sysedit_isSelected()

int sysedit_isSelected ( const Select_t * s)
static

Check to see if something is selected.

Definition at line 1637 of file dev_sysedit.c.

◆ sysedit_keys()

int sysedit_keys ( unsigned int wid,
SDL_Keycode key,
SDL_Keymod mod,
int isrepeat )
static

Handles keybindings.

Definition at line 305 of file dev_sysedit.c.

◆ sysedit_mouse()

int sysedit_mouse ( unsigned int wid,
const SDL_Event * event,
double mx,
double my,
double w,
double h,
double xr,
double yr,
void * data )
static

System editor custom widget mouse handling.

Definition at line 1236 of file dev_sysedit.c.

◆ sysedit_mouseTrySelect()

int sysedit_mouseTrySelect ( const Select_t * sel,
double x,
double y,
double t,
double mx,
double my,
SDL_Keymod mod,
void(* func )(void) )
static

Definition at line 1179 of file dev_sysedit.c.

◆ sysedit_open()

void sysedit_open ( StarSystem * sys)

Opens the system editor interface.

Definition at line 196 of file dev_sysedit.c.

◆ sysedit_render()

void sysedit_render ( double bx,
double by,
double w,
double h,
void * data )
static

System editor custom widget rendering.

Definition at line 902 of file dev_sysedit.c.

◆ sysedit_renderAsteroidExclusion()

void sysedit_renderAsteroidExclusion ( double bx,
double by,
const AsteroidExclusion * aexcl,
int selected )
static

Draws an asteroid exclusion zone on the map.

Definition at line 1057 of file dev_sysedit.c.

◆ sysedit_renderAsteroidsField()

void sysedit_renderAsteroidsField ( double bx,
double by,
const AsteroidAnchor * ast,
int selected )
static

Draws an asteroid field on the map.

Definition at line 1030 of file dev_sysedit.c.

◆ sysedit_renderBG()

void sysedit_renderBG ( double bx,
double bw,
double w,
double h,
double x,
double y )
static

Renders the custom widget background.

Definition at line 1088 of file dev_sysedit.c.

◆ sysedit_renderSprite()

void sysedit_renderSprite ( const glTexture * gfx,
double bx,
double by,
double x,
double y,
int sx,
int sy,
const glColour * c,
int selected,
const char * caption )
static

Renders a sprite for the custom widget.

Definition at line 1135 of file dev_sysedit.c.

◆ sysedit_selectAdd()

void sysedit_selectAdd ( const Select_t * sel)
static

Adds a system to the selection.

Definition at line 1587 of file dev_sysedit.c.

◆ sysedit_selectCmp()

int sysedit_selectCmp ( const Select_t * a,
const Select_t * b )
static

Compares two selections to see if they are the same.

Returns
1 if both selections are the same.

Definition at line 1629 of file dev_sysedit.c.

◆ sysedit_selectRm()

void sysedit_selectRm ( const Select_t * sel)
static

Removes a system from the selection.

Definition at line 1609 of file dev_sysedit.c.

◆ sysedit_spobDesc()

void sysedit_spobDesc ( unsigned int wid,
const char * unused )
static

Displays the spob landing description and bar description in a separate window.

Definition at line 2388 of file dev_sysedit.c.

◆ sysedit_spobDescClose()

void sysedit_spobDescClose ( unsigned int wid,
const char * unused )
static

Closes both the spob description window and the properties window.

Definition at line 2480 of file dev_sysedit.c.

◆ sysedit_spobDescReturn()

void sysedit_spobDescReturn ( unsigned int wid,
const char * unused )
static

Closes the spob description window and returns to the properties window.

Definition at line 2446 of file dev_sysedit.c.

◆ sysedit_spobGFX()

void sysedit_spobGFX ( unsigned int wid_unused,
const char * wgt )
static

Opens the spob landing or space graphic editor.

Definition at line 3127 of file dev_sysedit.c.

◆ sysedit_sysScale()

void sysedit_sysScale ( StarSystem * sys,
double factor )

Scales a system.

Definition at line 846 of file dev_sysedit.c.

Variable Documentation

◆ jp_exit

int jp_exit = 0
static

Jump point exit only checkbox value.

Definition at line 97 of file dev_sysedit.c.

◆ jp_hidden

int jp_hidden = 0
static

Jump point hidden checkbox value.

Definition at line 96 of file dev_sysedit.c.

◆ sysedit_drag

int sysedit_drag = 0
static

Dragging viewport around.

Definition at line 90 of file dev_sysedit.c.

◆ sysedit_dragSel

int sysedit_dragSel = 0
static

Dragging system around.

Definition at line 91 of file dev_sysedit.c.

◆ sysedit_dragTime

unsigned int sysedit_dragTime = 0
static

Tick last started to drag.

Definition at line 89 of file dev_sysedit.c.

◆ sysedit_grid

int sysedit_grid = 1
static

Grid is visible.

Definition at line 84 of file dev_sysedit.c.

◆ sysedit_moved

int sysedit_moved = 0
static

Space moved since mouse down.

Definition at line 88 of file dev_sysedit.c.

◆ sysedit_mselect

int sysedit_mselect = 0
static

Memory allocated for selections.

Definition at line 73 of file dev_sysedit.c.

◆ sysedit_mx

double sysedit_mx = 0.
static

Cursor X position.

Definition at line 92 of file dev_sysedit.c.

◆ sysedit_my

double sysedit_my = 0.
static

Cursor Y position.

Definition at line 93 of file dev_sysedit.c.

◆ sysedit_nselect

int sysedit_nselect = 0
static

Number of selections in current system.

Definition at line 72 of file dev_sysedit.c.

◆ sysedit_select

Select_t* sysedit_select = NULL
static

Current system selection.

Definition at line 71 of file dev_sysedit.c.

◆ sysedit_sys

StarSystem* sysedit_sys = NULL
static

Currently opened system.

Definition at line 81 of file dev_sysedit.c.

◆ sysedit_tadd

int sysedit_tadd = 0
static

Add to selection.

Definition at line 75 of file dev_sysedit.c.

◆ sysedit_tagslist

char** sysedit_tagslist = NULL
static

List of existing tags.

Definition at line 76 of file dev_sysedit.c.

◆ sysedit_tsel

Select_t sysedit_tsel
static

Temporary selection.

Definition at line 74 of file dev_sysedit.c.

◆ sysedit_wid

unsigned int sysedit_wid = 0
static

Sysedit wid.

Definition at line 82 of file dev_sysedit.c.

◆ sysedit_widEdit

unsigned int sysedit_widEdit = 0
static

Spob editor wid.

Definition at line 83 of file dev_sysedit.c.

◆ sysedit_xpos

double sysedit_xpos = 0.
static

Viewport X position.

Definition at line 85 of file dev_sysedit.c.

◆ sysedit_ypos

double sysedit_ypos = 0.
static

Viewport Y position.

Definition at line 86 of file dev_sysedit.c.

◆ sysedit_zoom

double sysedit_zoom = 1.
static

Viewport zoom level.

Definition at line 87 of file dev_sysedit.c.