I have a level with 1 block, this level is attached to main.wdl.
main.wdl contains the menu of the game, and in this main.wdl I have included a wdl in a different folder: maps/game.wdl (game.wdl is in a subfolder named: maps).
In main.wdl there is a panel with a newgame menu, and when I press "new game" it links to a function in maps/game.wdl which sets up the new game, and loads a new wmb file.
This WDL file also creates a panel, with a digit on it, in the digit definition in the panel I use the fontname font1.
Font1 exists on main.wdl, cause I use it standardly in the menu, but when I call up the font in the digits definition, I says font1 cannot be found, if I copy the font definition from main.wdl to maps/game.wdl, it gives me the error about double definition for that font when running...
Hoe can I fix this?
EDIT:
This is the structure:
Code:
main.wdl <- main WDL file with the menu
font hsfont = <font.tga>, 13, 20;
Code:
maps/game.wdl <- ingame stuff (game.wdl is in a subfolder named: maps)
panel pan_timerback{
digits = 0,0,2,hsfont,1,time_hour;
digits = 20,0,2,hsfont,1,time_minute;
}