~ubuntu-branches/ubuntu/trusty/teeworlds/trusty-updates

« back to all changes in this revision

Viewing changes to src/game/editor/ed_editor.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Gonéri Le Bouder
  • Date: 2009-04-12 02:32:37 UTC
  • mfrom: (3.2.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090412023237-ufmf1xn0rkjmx6f3
Tags: 0.5.1-2
* Fix the ouput of teeworlds-server --help with /bin/sh ->
  /bin/bash (Closes: #511600)
* Standard version 3.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
2
2
 
 
3
#include <base/system.h>
 
4
#include <base/math.hpp>
 
5
 
3
6
#include <stdlib.h>
4
7
#include <math.h>
5
 
#include "array.h"
6
 
#include "../g_mapitems.h"
7
 
#include "../g_math.h"
8
 
#include "../client/gc_render.h"
 
8
#include "array.hpp"
 
9
#include "../mapitems.hpp"
 
10
#include "../client/render.hpp"
9
11
 
10
12
extern "C" {
11
 
        #include <engine/e_system.h>
12
13
        #include <engine/e_client_interface.h>
13
14
        #include <engine/e_datafile.h>
14
15
        #include <engine/e_config.h>
15
16
}
16
17
 
17
 
#include <game/client/gc_ui.h>
 
18
#include <game/client/ui.hpp>
18
19
 
19
20
typedef void (*INDEX_MODIFY_FUNC)(int *index);
20
21
 
217
218
        }
218
219
};
219
220
 
220
 
class IMAGE : public IMAGE_INFO
 
221
class EDITOR_IMAGE : public IMAGE_INFO
221
222
{
222
223
public:
223
 
        IMAGE()
 
224
        EDITOR_IMAGE()
224
225
        {
225
226
                tex_id = -1;
226
227
                name[0] = 0;
231
232
                format = 0;
232
233
        }
233
234
        
234
 
        ~IMAGE()
 
235
        ~EDITOR_IMAGE()
235
236
        {
236
237
                gfx_unload_texture(tex_id);
237
238
        }
255
256
        }
256
257
 
257
258
        array<LAYERGROUP*> groups;
258
 
        array<IMAGE*> images;
 
259
        array<EDITOR_IMAGE*> images;
259
260
        array<ENVELOPE*> envelopes;
260
261
        
261
262
        class LAYER_GAME *game_layer;
349
350
                world_zoom = 1.0f;
350
351
                zoom_level = 100;
351
352
                lock_mouse = false;
 
353
                show_mouse_pointer = true;
352
354
                mouse_delta_x = 0;
353
355
                mouse_delta_y = 0;
354
356
                mouse_delta_wx = 0;
361
363
                animate = false;
362
364
                animate_start = 0;
363
365
                animate_time = 0;
 
366
                animate_speed = 1;
364
367
                
365
368
                show_envelope_editor = 0;
366
369
        }
367
370
        
368
 
        void invoke_file_dialog(const char *title, const char *button_text,
 
371
        void invoke_file_dialog(int listdir_type, const char *title, const char *button_text,
369
372
                const char *basepath, const char *default_name,
370
373
                void (*func)(const char *filename));
371
374
        
393
396
        float world_zoom;
394
397
        int zoom_level;
395
398
        bool lock_mouse;
 
399
        bool show_mouse_pointer;
396
400
        bool gui_active;
397
401
        bool proof_borders;
398
402
        float mouse_delta_x;
404
408
        bool animate;
405
409
        int64 animate_start;
406
410
        float animate_time;
 
411
        float animate_speed;
407
412
        
408
413
        int show_envelope_editor;
409
414