mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-29 07:02:12 +00:00
906b705bf0
fixed non-browser ogg decoding and openal logic. should finally be fixed, I guess. wasted some time on an ezhud plugin, along with ensuring certain info is available to the plugin. this is still a work in progress however. non-web builds are now able to download images from urls. download progress does not display for uri_get/uri_post builtins, nor other non-saved things. q1qvm logic now uses pr_maxedicts cvar. the gamecode api still provides no way to tell how many are permissable, so set at own risk. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4852 fc73d0e0-1445-4013-8a0c-d673dee63da5
59 lines
1.5 KiB
C
59 lines
1.5 KiB
C
/*
|
|
HUD Editor module
|
|
|
|
Copyright (C) 2007 Cokeman
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License
|
|
as published by the Free Software Foundation; either version 2
|
|
of the License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef __HUD_EDITOR_H__
|
|
#define __HUD_EDITOR_H__
|
|
|
|
// hud editor drawing function
|
|
void HUD_Editor_Draw(void);
|
|
|
|
// hud editor initialization
|
|
void HUD_Editor_Init(void);
|
|
|
|
// Mouse processing.
|
|
qbool HUD_Editor_MouseEvent (float x, float y);
|
|
|
|
// Key press processing function.
|
|
void HUD_Editor_Key(int key, int unichar, qbool down);
|
|
|
|
//
|
|
// Should this HUD element be fully drawn or not when in align mode
|
|
// when using the HUD editor.
|
|
//
|
|
qbool HUD_Editor_ConfirmDraw(hud_t *hud);
|
|
|
|
typedef enum
|
|
{
|
|
hud_editmode_off,
|
|
hud_editmode_align,
|
|
hud_editmode_place,
|
|
hud_editmode_move_resize,
|
|
hud_editmode_resize,
|
|
hud_editmode_move_lockedaxis,
|
|
hud_editmode_hudmenu,
|
|
hud_editmode_menu,
|
|
hud_editmode_hoverlist,
|
|
hud_editmode_normal
|
|
} hud_editor_mode_t;
|
|
|
|
extern hud_editor_mode_t hud_editor_mode;
|
|
extern hud_t *selected_hud;
|
|
|
|
#endif // __HUD_EDITOR_H__
|