Mythical and alliance user interfaces are removed from the main distribution.

This commit is contained in:
johns 2000-03-26 16:25:42 +00:00
parent 78bb6b768b
commit 47f46dc967

530
ui/ui.cpp
View file

@ -300,538 +300,10 @@ local UI UI2 = {
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
/**
** User interface 3.
*/
local UI UI3 = {
#undef MAP_Y
#undef MAP_W
#undef MAP_H
#undef TOP_X
#undef TOP_Y
#undef BOT_X
#undef BOT_Y
#define MAP_Y 16
#define MAP_W 20
#define MAP_H 9
#define TOP_X 0
#define TOP_Y 480-176
#define BOT_X 176+176
#define BOT_Y 480-160
"alliance", 640, 480, // interface selector
100, 0, 100, // contrast, brightness, saturation
1, // mouse scrolling
0, // reverse mouse
-1, // warp x
-1, // warp y
MOUSEADJUST, // mouse speed
MOUSESCALE, // mouse scale
// Filler 1
{ "graphic/ui/alliance/filler1.png" },
528, 320,
// Resource line
{ "graphic/ui/alliance/resource.png" },
0, 0,
// Flag original resources
0,
// resources
{
// time resource
{ },
// gold resource
{ { "graphic/gold,wood,oil,mana.png" }, 0,
176+ 20, 0, 14, 14,
176+ 40, 1, },
// wood resource
{ { "graphic/gold,wood,oil,mana.png" }, 1,
176+100, 0, 14, 14,
176+120, 1, },
// oil resource
{ { "graphic/gold,wood,oil,mana.png" }, 2,
176+180, 0, 14, 14,
176+200, 1, },
},
// food resource
{ "graphic/food.png" }, 0,
176+260, 0, 14, 14,
176+280, 1,
// score resource
{ "graphic/score.png" }, 0,
176+340, 0, 14, 14,
176+360, 1,
// Info panel
{ "graphic/ui/alliance/infopanel.png" },
TOP_X, TOP_Y, 176, 176,
// Completed bar
ColorDarkGreen, TOP_X+12, TOP_Y+8+145, TOP_X+50, TOP_Y+8+145,
// Command button panel
{ "graphic/ui/alliance/buttonpanel.png" },
BOT_X, BOT_Y,
// The big map
0, MAP_Y, 0+MAP_W*TileSizeX, MAP_Y+MAP_H*TileSizeY,
// Menu button
{ "graphic/ui/alliance/menubutton.png" },
176, 480-160,
// Minimap
{ "graphic/ui/alliance/minimap.png" },
176, 480-160+24,
// Status line
{ "graphic/ui/alliance/statusline.png" },
176, 480-160-16,
//
// Defines position and size of the different buttons.
//
{
// Menu button
{ 176+24, 480-160+2, 128,17 },
// 9 Character portraits
{ 6+TOP_X,TOP_Y+6, 46,38 },
{ 62+TOP_X,TOP_Y+6, 46,38 },
{ 118+TOP_X,TOP_Y+6, 46,38 },
{ 6+TOP_X,TOP_Y+58, 46,38 },
{ 62+TOP_X,TOP_Y+58, 46,38 },
{ 118+TOP_X,TOP_Y+58, 46,38 },
{ 6+TOP_X,TOP_Y+110, 46,38 },
{ 62+TOP_X,TOP_Y+110, 46,38 },
{ 118+TOP_X,TOP_Y+110, 46,38 },
// 9 Buttons interface
{ 6+BOT_X,BOT_Y+1, 46,38 },
{ 62+BOT_X,BOT_Y+1, 46,38 },
{ 118+BOT_X,BOT_Y+1, 46,38 },
{ 6+BOT_X,BOT_Y+48, 46,38 },
{ 62+BOT_X,BOT_Y+48, 46,38 },
{ 118+BOT_X,BOT_Y+48, 46,38 },
{ 6+BOT_X,BOT_Y+95, 46,38 },
{ 62+BOT_X,BOT_Y+95, 46,38 },
{ 118+BOT_X,BOT_Y+95, 46,38 },
},
//
// Defines position and size of the training queue buttons.
//
{
{ 6+TOP_X,TOP_Y+ 56, 46,38 },
{ 62+TOP_X,TOP_Y+ 56, 46,38 },
{ 118+TOP_X,TOP_Y+ 56, 46,38 },
{ 6+TOP_X,TOP_Y+103, 46,38 },
{ 62+TOP_X,TOP_Y+103, 46,38 },
{ 118+TOP_X,TOP_Y+103, 46,38 }
},
// FIXME: must make more configurable
};
// ----------------------------------------------------------------------------
/**
** User interface 4.
*/
local UI UI4 = {
"mythical", 640, 480, // interface selector
100, 0, 100, // contrast, brightness, saturation
1, // mouse scrolling
0, // reverse mouse
-1, // warp x
-1, // warp y
MOUSEADJUST, // mouse speed
MOUSESCALE, // mouse scale
// Filler 1
{ "graphic/ui/mythical/filler1.png" },
528, 320,
// Resource line
{ "graphic/ui/mythical/resource.png" },
0, 0,
// Flag original resources
0,
// resources
{
// time resource
{ },
// gold resource
{ { "graphic/gold,wood,oil,mana.png" }, 0,
176+ 20, 0, 14, 14,
176+ 40, 1, },
// wood resource
{ { "graphic/gold,wood,oil,mana.png" }, 1,
176+100, 0, 14, 14,
176+120, 1, },
// oil resource
{ { "graphic/gold,wood,oil,mana.png" }, 2,
176+180, 0, 14, 14,
176+200, 1, },
},
// food resource
{ "graphic/food.png" }, 0,
176+260, 0, 14, 14,
176+280, 1,
// score resource
{ "graphic/score.png" }, 0,
176+340, 0, 14, 14,
176+360, 1,
// Info panel
{ "graphic/ui/mythical/infopanel.png" },
TOP_X, TOP_Y, 176, 176,
// Completed bar
ColorDarkGreen, TOP_X+12, TOP_Y+8+145, TOP_X+50, TOP_Y+8+145,
// Command button panel
{ "graphic/ui/mythical/buttonpanel.png" },
BOT_X, BOT_Y,
// The big map
0, MAP_Y, 0+MAP_W*TileSizeX, MAP_Y+MAP_H*TileSizeY,
// Menu button
{ "graphic/ui/mythical/menubutton.png" },
176, 480-160,
// Minimap
{ "graphic/ui/mythical/minimap.png" },
176, 480-160+24,
// Status line
{ "graphic/ui/mythical/statusline.png" },
176, 480-160-16,
//
// Defines position and size of the different buttons.
//
{
// Menu button
{ 176+24, 480-160+2, 128,17 },
// 9 Character portraits
{ 6+TOP_X,TOP_Y+6, 46,38 },
{ 62+TOP_X,TOP_Y+6, 46,38 },
{ 118+TOP_X,TOP_Y+6, 46,38 },
{ 6+TOP_X,TOP_Y+58, 46,38 },
{ 62+TOP_X,TOP_Y+58, 46,38 },
{ 118+TOP_X,TOP_Y+58, 46,38 },
{ 6+TOP_X,TOP_Y+110, 46,38 },
{ 62+TOP_X,TOP_Y+110, 46,38 },
{ 118+TOP_X,TOP_Y+110, 46,38 },
// 9 Buttons interface
{ 6+BOT_X,BOT_Y+1, 46,38 },
{ 62+BOT_X,BOT_Y+1, 46,38 },
{ 118+BOT_X,BOT_Y+1, 46,38 },
{ 6+BOT_X,BOT_Y+48, 46,38 },
{ 62+BOT_X,BOT_Y+48, 46,38 },
{ 118+BOT_X,BOT_Y+48, 46,38 },
{ 6+BOT_X,BOT_Y+95, 46,38 },
{ 62+BOT_X,BOT_Y+95, 46,38 },
{ 118+BOT_X,BOT_Y+95, 46,38 },
},
//
// Defines position and size of the training queue buttons.
//
{
{ 6+TOP_X,TOP_Y+ 56, 46,38 },
{ 62+TOP_X,TOP_Y+ 56, 46,38 },
{ 118+TOP_X,TOP_Y+ 56, 46,38 },
{ 6+TOP_X,TOP_Y+103, 46,38 },
{ 62+TOP_X,TOP_Y+103, 46,38 },
{ 118+TOP_X,TOP_Y+103, 46,38 }
},
// FIXME: must make more configurable
};
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
/**
** User interface 5.
*/
local UI UI5 = {
#undef MAP_Y
#undef MAP_W
#undef MAP_H
#undef TOP_X
#undef TOP_Y
#undef BOT_X
#undef BOT_Y
#define MAP_Y 16
#define MAP_W 25
#define MAP_H 12
#define TOP_X 0
#define TOP_Y 600-176
#define BOT_X 176+176
#define BOT_Y 600-160
"alliance", 800, 600, // interface selector
100, 0, 100, // contrast, brightness, saturation
1, // mouse scrolling
0, // reverse mouse
-1, // warp x
-1, // warp y
MOUSEADJUST, // mouse speed
MOUSESCALE, // mouse scale
// Filler 1
{ "graphic/ui/alliance/filler1.png" },
528, 600-160,
// Resource line
{ "graphic/ui/alliance/resource.png" },
0, 0,
// Flag original resources
0,
// resources
{
// time resource
{ },
// gold resource
{ { "graphic/gold,wood,oil,mana.png" }, 0,
176+ 20, 0, 14, 14,
176+ 40, 1, },
// wood resource
{ { "graphic/gold,wood,oil,mana.png" }, 1,
176+100, 0, 14, 14,
176+120, 1, },
// oil resource
{ { "graphic/gold,wood,oil,mana.png" }, 2,
176+180, 0, 14, 14,
176+200, 1, },
},
// food resource
{ "graphic/food.png" }, 0,
176+260, 0, 14, 14,
176+280, 1,
// score resource
{ "graphic/score.png" }, 0,
176+340, 0, 14, 14,
176+360, 1,
// Info panel
{ "graphic/ui/alliance/infopanel.png" },
TOP_X, TOP_Y, 176, 176,
// Completed bar
ColorDarkGreen, TOP_X+12, TOP_Y+8+145, TOP_X+50, TOP_Y+8+145,
// Command button panel
{ "graphic/ui/alliance/buttonpanel.png" },
BOT_X, BOT_Y,
// The big map
0, MAP_Y, 0+MAP_W*TileSizeX, MAP_Y+MAP_H*TileSizeY,
// Menu button
{ "graphic/ui/alliance/menubutton.png" },
176, 600-160,
// Minimap
{ "graphic/ui/alliance/minimap.png" },
176, 600-160+24,
// Status line
{ "graphic/ui/alliance/statusline.png" },
176, 600-160-16,
//
// Defines position and size of the different buttons.
//
{
// Menu button
{ 176+24, 600-160+2, 128,17 },
// 9 Character portraits
{ 6+TOP_X,TOP_Y+6, 46,38 },
{ 62+TOP_X,TOP_Y+6, 46,38 },
{ 118+TOP_X,TOP_Y+6, 46,38 },
{ 6+TOP_X,TOP_Y+58, 46,38 },
{ 62+TOP_X,TOP_Y+58, 46,38 },
{ 118+TOP_X,TOP_Y+58, 46,38 },
{ 6+TOP_X,TOP_Y+110, 46,38 },
{ 62+TOP_X,TOP_Y+110, 46,38 },
{ 118+TOP_X,TOP_Y+110, 46,38 },
// 9 Buttons interface
{ 6+BOT_X,BOT_Y+1, 46,38 },
{ 62+BOT_X,BOT_Y+1, 46,38 },
{ 118+BOT_X,BOT_Y+1, 46,38 },
{ 6+BOT_X,BOT_Y+48, 46,38 },
{ 62+BOT_X,BOT_Y+48, 46,38 },
{ 118+BOT_X,BOT_Y+48, 46,38 },
{ 6+BOT_X,BOT_Y+95, 46,38 },
{ 62+BOT_X,BOT_Y+95, 46,38 },
{ 118+BOT_X,BOT_Y+95, 46,38 },
},
//
// Defines position and size of the training queue buttons.
//
{
{ 6+TOP_X,TOP_Y+ 56, 46,38 },
{ 62+TOP_X,TOP_Y+ 56, 46,38 },
{ 118+TOP_X,TOP_Y+ 56, 46,38 },
{ 6+TOP_X,TOP_Y+103, 46,38 },
{ 62+TOP_X,TOP_Y+103, 46,38 },
{ 118+TOP_X,TOP_Y+103, 46,38 }
},
// FIXME: must make more configurable
};
// ----------------------------------------------------------------------------
/**
** User interface 6.
*/
local UI UI6 = {
"mythical", 800, 600, // interface selector
100, 0, 100, // contrast, brightness, saturation
1, // mouse scrolling
0, // reverse mouse
-1, // warp x
-1, // warp y
MOUSEADJUST, // mouse speed
MOUSESCALE, // mouse scale
// Filler 1
{ "graphic/ui/mythical/filler1.png" },
528, 600-160,
// Resource line
{ "graphic/ui/mythical/resource.png" },
0, 0,
// Flag original resources
0,
// resources
{
// time resource
{ },
// gold resource
{ { "graphic/gold,wood,oil,mana.png" }, 0,
176+ 20, 0, 14, 14,
176+ 40, 1, },
// wood resource
{ { "graphic/gold,wood,oil,mana.png" }, 1,
176+100, 0, 14, 14,
176+120, 1, },
// oil resource
{ { "graphic/gold,wood,oil,mana.png" }, 2,
176+180, 0, 14, 14,
176+200, 1, },
},
// food resource
{ "graphic/food.png" }, 0,
176+260, 0, 14, 14,
176+280, 1,
// score resource
{ "graphic/score.png" }, 0,
176+340, 0, 14, 14,
176+360, 1,
// Info panel
{ "graphic/ui/mythical/infopanel.png" },
TOP_X, TOP_Y, 176, 176,
// Completed bar
ColorDarkGreen, TOP_X+12, TOP_Y+8+145, TOP_X+50, TOP_Y+8+145,
// Command button panel
{ "graphic/ui/mythical/buttonpanel.png" },
BOT_X, BOT_Y,
// The big map
0, MAP_Y, 0+MAP_W*TileSizeX, MAP_Y+MAP_H*TileSizeY,
// Menu button
{ "graphic/ui/mythical/menubutton.png" },
176, 600-160,
// Minimap
{ "graphic/ui/mythical/minimap.png" },
176, 600-160+24,
// Status line
{ "graphic/ui/mythical/statusline.png" },
176, 600-160-16,
//
// Defines position and size of the different buttons.
//
{
// Menu button
{ 176+24, 600-160+2, 128,17 },
// 9 Character portraits
{ 6+TOP_X,TOP_Y+6, 46,38 },
{ 62+TOP_X,TOP_Y+6, 46,38 },
{ 118+TOP_X,TOP_Y+6, 46,38 },
{ 6+TOP_X,TOP_Y+58, 46,38 },
{ 62+TOP_X,TOP_Y+58, 46,38 },
{ 118+TOP_X,TOP_Y+58, 46,38 },
{ 6+TOP_X,TOP_Y+110, 46,38 },
{ 62+TOP_X,TOP_Y+110, 46,38 },
{ 118+TOP_X,TOP_Y+110, 46,38 },
// 9 Buttons interface
{ 6+BOT_X,BOT_Y+1, 46,38 },
{ 62+BOT_X,BOT_Y+1, 46,38 },
{ 118+BOT_X,BOT_Y+1, 46,38 },
{ 6+BOT_X,BOT_Y+48, 46,38 },
{ 62+BOT_X,BOT_Y+48, 46,38 },
{ 118+BOT_X,BOT_Y+48, 46,38 },
{ 6+BOT_X,BOT_Y+95, 46,38 },
{ 62+BOT_X,BOT_Y+95, 46,38 },
{ 118+BOT_X,BOT_Y+95, 46,38 },
},
//
// Defines position and size of the training queue buttons.
//
{
{ 6+TOP_X,TOP_Y+ 56, 46,38 },
{ 62+TOP_X,TOP_Y+ 56, 46,38 },
{ 118+TOP_X,TOP_Y+ 56, 46,38 },
{ 6+TOP_X,TOP_Y+103, 46,38 },
{ 62+TOP_X,TOP_Y+103, 46,38 },
{ 118+TOP_X,TOP_Y+103, 46,38 }
},
// FIXME: must make more configurable
};
/**
** The default user interfaces.
*/
local UI* UIn[] = { &UI1, &UI2, &UI3, &UI4, &UI5, &UI6, NULL };
local UI* UIn[] = { &UI1, &UI2, NULL };
/**
** The available user interfaces.