okie menus are working
This commit is contained in:
parent
3932589790
commit
05e28fe820
11 changed files with 135 additions and 55 deletions
|
|
@ -1,10 +1,10 @@
|
|||
#include "themes.h"
|
||||
|
||||
Font forefont;
|
||||
enginend::theme clienttheme{
|
||||
|
||||
enginend::theme CLIENTTHEME{
|
||||
.textfieldbg ={127,0,0,127},
|
||||
.background = {0,0,0,0},
|
||||
.border = {0,0,0,0},
|
||||
.border = {0,255,255,0},
|
||||
.booleanbutton = {
|
||||
{0,200,0,180},
|
||||
{100,200,100,180},
|
||||
|
|
@ -14,7 +14,14 @@ enginend::theme clienttheme{
|
|||
{255,100,100,255},
|
||||
},
|
||||
.text = {255,127,0,255},
|
||||
.font = forefont,
|
||||
.booleantext = {
|
||||
{255,255,255,255},
|
||||
{255,255,255,255},
|
||||
{255,255,255,255},
|
||||
{255,255,255,255},
|
||||
{255,255,255,255},
|
||||
{255,255,255,255}
|
||||
},
|
||||
.tint = {255,255,255,255},
|
||||
.button = {
|
||||
{0,0,0,0},
|
||||
|
|
@ -28,8 +35,7 @@ enginend::theme clienttheme{
|
|||
}
|
||||
|
||||
};
|
||||
enginend::theme servertheme;
|
||||
|
||||
void initthemes() {
|
||||
forefont=LoadFont(AT("res/fonts/dos.fnt"));
|
||||
}
|
||||
enginend::theme* clienttheme=&CLIENTTHEME;
|
||||
enginend::theme* servertheme;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,13 @@
|
|||
#pragma once
|
||||
#include <enginend/engine.h>
|
||||
|
||||
extern Font forefont;
|
||||
extern enginend::theme clienttheme;
|
||||
extern enginend::theme servertheme;
|
||||
void initthemes();
|
||||
extern enginend::theme* clienttheme;
|
||||
extern enginend::theme* servertheme;
|
||||
inline void initthemes() {
|
||||
tiny::warning("loading font");
|
||||
clienttheme->font = LoadFont(AT("res/fonts/dos.fnt"));
|
||||
if (clienttheme->font.recs==nullptr) {
|
||||
tiny::fatal("LoadFont() failed");
|
||||
exit(404);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue