Skip to content

Commit

Permalink
New UI theme: "Plastic"
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Aug 30, 2003
1 parent 9fbb404 commit 66f3703
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
12 changes: 11 additions & 1 deletion doomsday/Doc/ChangeLog.txt
Expand Up @@ -9,10 +9,16 @@ Version 1.7.12 (work in progress)
+ option -leaveramp: don't reset color settings back to previous values
at shutdown
+ JWADs: IWAD supplements (uses normal WAD loading order)
+ Data\Graphics directory: Doomsday's graphics resources (UI textures)
+ cvars 'ui-cursor-width', 'ui-cursor-height': UI mouse cursor size
+ added new cvar controls to the Control Panel (e.g. multitex, HUD mirror)
* the first incarnation of the Doomsday UI theme, "Gradient", was
replaced with a much more polished theme, "Plastic"
* UI mouse cursor size and movement depend on display resolution
* music data will not be cached into the memory zone while loading
(large MP3s wasted a lot of space)
* paths that contain the base path are normally printed without the base
- removed obsolete settings from Control Panel: Network
- removed obsolete settings from Control Panel
- removed detail texture maximum distance cvar and Control Panel slider
- removed cvars 'rend-light-clip', 'rend-light-shrink'
- fixed: possible crash in Con_Error()
Expand All @@ -37,6 +43,9 @@ Definitions:
* Map Info definitions can be copied
* 'InFine' is an alternative name for the 'Finale' definition

Network:
- fixed: server increased a client's bandwidth rating too rapidly

Sound:
* sounds from PWADs are not replaced with automatic external resources

Expand Down Expand Up @@ -92,6 +101,7 @@ Renderer:
- fixed: shiny skins on HUD models
- fixed: console text gibberish on the first time the console is drawn
- fixed: cvar 'rend-tex' (render with textures)
- fixed: shadows fade away smoothly at maximum distance

drOpenGL:
+ support for multitexturing
Expand Down
20 changes: 15 additions & 5 deletions doomsday/Include/ui_main.h
Expand Up @@ -39,11 +39,12 @@ typedef enum

// Standard dimensions.
#define UI_BORDER (screenWidth/120) // All borders are this wide.
#define UI_SHADOW_OFFSET (screenWidth/320)
#define UI_SHADOW_OFFSET (MIN_OF(3, screenWidth/320))
#define UI_TITLE_HGT (ui_fonthgt + UI_BORDER*2)
#define UI_BUTTON_BORDER ((2*UI_BORDER)/3)
#define UI_BUTTON_BORDER (UI_BORDER)
#define UI_BAR_WDH (UI_BORDER * 3)
#define UI_BAR_BORDER (UI_BORDER/2)
#define UI_BAR_BORDER (UI_BORDER / 2)
#define UI_BAR_BUTTON_BORDER (3 * UI_BAR_BORDER / 2)
#define UI_MAX_COLUMNS 10 // Maximum columns for list box.

// Object flags.
Expand Down Expand Up @@ -167,9 +168,15 @@ extern ui_page_t *ui_page; // Active page.
extern boolean ui_active;
extern ui_color_t ui_colors[];

extern int uiMouseWidth;
extern int uiMouseHeight;

// Functions.
void UI_Init(void);
void UI_End(void);
void UI_LoadTextures(void);
void UI_ClearTextures(void);
DGLuint UI_LoadGraphics(const char *name, boolean grayscale);
void UI_InitPage(ui_page_t *page, ui_object_t *objects);
void UI_SetPage(ui_page_t *page);
int UI_Responder(event_t *ev);
Expand Down Expand Up @@ -208,17 +215,20 @@ int UI_MouseInsideBox(int x, int y, int w, int h);
int UI_MouseInside(ui_object_t *ob);
int UI_MouseResting(ui_page_t *page);
int UI_ListFindItem(ui_object_t *ob, int data_value);
void UI_DrawLogo(int x, int y, int w, int h);
void UI_DrawMouse(int x, int y);
void UI_DrawTitle(ui_page_t *page);
void UI_DrawTitleEx(char *text, int height);
void UI_MixColors(ui_color_t *a, ui_color_t *b, ui_color_t *dest, float amount);
void UI_ColorA(ui_color_t *color, float alpha);
void UI_Color(ui_color_t *color);
void UI_Line(int x1, int y1, int x2, int y2, ui_color_t *start, ui_color_t *end, float start_alpha, float end_alpha);
void UI_Shade(int x, int y, int w, int h, int border, ui_color_t *main, ui_color_t *secondary, float alpha, float bottom_alpha);
void UI_Gradient(int x, int y, int w, int h, ui_color_t *top, ui_color_t *bottom, float top_alpha, float bottom_alpha);
void UI_GradientEx(int x, int y, int w, int h, int border, ui_color_t *top, ui_color_t *bottom, float top_alpha, float bottom_alpha);
void UI_HorizGradient(int x, int y, int w, int h, ui_color_t *left, ui_color_t *right, float left_alpha, float right_alpha);
void UI_DrawRect(int x, int y, int w, int h, int brd, ui_color_t *hi, ui_color_t *med, ui_color_t *low);
void UI_DrawRectEx(int x, int y, int w, int h, int brd, ui_color_t *hi, ui_color_t *med, ui_color_t *low, float alpha);
void UI_DrawRect(int x, int y, int w, int h, int brd, ui_color_t *color, float alpha);
void UI_DrawRectEx(int x, int y, int w, int h, int brd, boolean filled, ui_color_t *top, ui_color_t *bottom, float alpha, float bottom_alpha);
void UI_DrawTriangle(int x, int y, int radius, ui_color_t *hi, ui_color_t *med, ui_color_t *low, float alpha);
void UI_DrawButton(int x, int y, int w, int h, int brd, float alpha, ui_color_t *background, boolean down, boolean disabled, int arrow);
void UI_TextOut(char *text, int x, int y);
Expand Down

0 comments on commit 66f3703

Please sign in to comment.