well im in this mod called Eastfront, and we are a major mod, and we would like to know where to mod the loading screen, i dont mean the gfx, i mean the posistions of them and such, we didnt see it in the ui folder, and dont know where to look for it, can any one help?:stroggbanana:
Loading screen, how to edit?
TomTom7777
(TomTom7777)
#2
There are defaults in the vanilla ET code for the map and side rectangles
ui_shared.h
//
// panelhandling
//
typedef struct panel_button_s panel_button_t;
typedef struct panel_button_text_s {
float scalex, scaley;
vec4_t colour;
int style;
int align;
fontInfo_t* font;
} panel_button_text_t;
...
// Button struct
struct panel_button_s {
// compile time stuff
// ======================
const char* shaderNormal;
// text
const char* text;
// rect
[B]rectDef_t rect;[/B]
// data
int data[8];
// "font"
panel_button_text_t* font;
// functions
panel_button_key_down onKeyDown;
panel_button_key_up onKeyUp;
panel_button_render onDraw;
panel_button_postprocess onFinish;
// run-time stuff
// ======================
qhandle_t hShaderNormal;
};
and ui_loadpanel.c and cg_loadpanel.c
panel_button_t loadScreenMap = {
"gfx/loading/camp_map",
NULL,
[B]{ 0, 0, 440, 480 }[/B], // shouldn't this be square?? // Gordon: no, the map is actually WIDER that tall, which makes it even worse...
{ 0, 0, 0, 0, 0, 0, 0, 0 },
NULL, /* font */
NULL, /* keyDown */
NULL, /* keyUp */
BG_PanelButtonsRender_Img,
NULL,
};
panel_button_t loadScreenBack = {
"gfx/loading/camp_side",
NULL,
[B]{ 440, 0, 200, 480 }[/B],
{ 0, 0, 0, 0, 0, 0, 0, 0 },
NULL, /* font */
NULL, /* keyDown */
NULL, /* keyUp */
BG_PanelButtonsRender_Img,
NULL,
};
and ui_loadpanel.c again
...
panel_button_t* loadpanelButtons[] = {
&loadScreenMap, &loadScreenBack,
&loadingPanelText, /*&loadingPanelHeaderText,*/
/*&campaignheaderPanelText,*/ &campaignPanelText,
NULL,
};
or cg_loadpanel.c again
panel_button_t* loadpanelButtons[] = {
&loadScreenMap, &loadScreenBack,
&missiondescriptionPanelText, &missiondescriptionPanelHeaderText,
&campaignheaderPanelText, &campaignPanelText,
&loadScreenMeterBack, &loadScreenMeterBack2, &loadScreenMeterBackText,
&loadScreenPins,
NULL,
};
and some key functions in ui_shared.c. Have not found any external data file to override the defaults as yet…
and as you no doubt know the map arena files determine the marker positions
kamikazee
(kamikazee)
#3
Hmmm, so maybe you could externalize it, given that you code some load mechanism…