Skip to content

Commit

Permalink
Loading screen is now in XML, finally!
Browse files Browse the repository at this point in the history
Removed dxApplicationRender and cleaned up CApplication
Moved rs_loadingstages from xrRender to xrEngine
  • Loading branch information
Xottab-DUTY committed Jun 19, 2018
1 parent ce6164a commit dae188f
Show file tree
Hide file tree
Showing 37 changed files with 324 additions and 497 deletions.
10 changes: 10 additions & 0 deletions res/gamedata/configs/ui/textures_descr/ui_mm_loading_screen.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<w>
<file name="ui\ui_actor_loadgame_screen">
<texture id="ui_mm_loading_screen" x="0" y="0" width="1024" height="768" />
<texture id="ui_mm_loading_progress_bar" x="0" y="772" width="506" height="4" />
</file>
<file name="ui\ui_actor_widescreen_sidepanels">
<texture id="ui_mm_loading_left_widepanel" x="0" y="0" width="128" height="768" />
<texture id="ui_mm_loading_right_widepanel" x="128" y="0" width="128" height="768" />
</file>
</w>
43 changes: 43 additions & 0 deletions res/gamedata/configs/ui/ui_mm_loading_screen.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<w>
<background width="1024" height="768">
<auto_static width="1024" height="768">
<texture>ui_mm_loading_screen</texture>
</auto_static>
</background>

<loading_logo x="0" y="173" width="1024" height="399">
</loading_logo>

<loading_progress_background x="260" y="599" width="405" height="4">
<texture width="405" height="4" color="black" a="255">ui_mm_loading_progress_bar</texture>
</loading_progress_background>

<loading_progress x="260" y="599" width="506" height="4" horz="1" min="0" max="100" pos="0" inertion="5.0">
<progress>
<texture>ui_mm_loading_progress_bar</texture>
</progress>
<min_color r="30" g="88" b="126"/>
<middle_color r="60" g="118" b="156"/>
<max_color r="90" g="148" b="186"/>
</loading_progress>

<loading_progress_percent x="260" y="574" width="506" height="20">
<text align="c" r="170" g="170" b="170" font="letterica18"/>
</loading_progress_percent>

<loading_stage x="260" y="530" width="506" height="20">
<text align="c" r="170" g="170" b="170" font="letterica18"/>
</loading_stage>

<loading_header x="260" y="622" width="506" height="20">
<text align="c" r="103" g="103" b="103" font="letterica18"/>
</loading_header>

<loading_tip_number x="260" y="658" width="506" height="20">
<text align="c" r="103" g="103" b="103" font="letterica18"/>
</loading_tip_number>

<loading_tip x="163" y="676" width="700" height="80" complex_mode="1">
<text alignment="c" align="c" r="103" g="103" b="103" font="letterica18"/>
</loading_tip>
</w>
49 changes: 49 additions & 0 deletions res/gamedata/configs/ui/ui_mm_loading_screen_16.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<w>
<background width="1024" height="768">
<auto_static x="102" y="0" width="819" height="768" stretch="1">
<texture>ui_mm_loading_screen</texture>
</auto_static>
<auto_static x="0" y="0" width="104" height="768" stretch="1">
<texture>ui_mm_loading_left_widepanel</texture>
</auto_static>
<auto_static x="920" y="0" width="104" height="768" stretch="1">
<texture>ui_mm_loading_right_widepanel</texture>
</auto_static>
</background>

<loading_logo x="104" y="173" width="816" height="512" stretch="1">
</loading_logo>

<loading_progress_background x="310" y="599" width="405" height="4">
<texture width="405" height="4" color="black" a="255">ui_mm_loading_progress_bar</texture>
</loading_progress_background>

<loading_progress x="310" y="599" width="405" height="4" horz="1" min="0" max="100" pos="0" inertion="5.0">
<progress>
<texture>ui_mm_loading_progress_bar</texture>
</progress>
<min_color r="30" g="88" b="126"/>
<middle_color r="60" g="118" b="156"/>
<max_color r="90" g="148" b="186"/>
</loading_progress>

<loading_progress_percent x="310" y="574" width="405" height="20" stretch="1">
<text align="c" r="170" g="170" b="170" a="0" font="letterica18"/>
</loading_progress_percent>

<loading_stage x="310" y="530" width="405" height="20" stretch="1">
<text align="c" r="170" g="170" b="170" font="letterica18"/>
</loading_stage>

<loading_header x="310" y="622" width="405" height="20" stretch="1">
<text align="c" r="103" g="103" b="103" font="letterica18"/>
</loading_header>

<loading_tip_number x="310" y="658" width="405" height="20" stretch="1">
<text align="c" r="103" g="103" b="103" font="letterica18"/>
</loading_tip_number>

<loading_tip x="273" y="676" width="480" height="80" complex_mode="1" stretch="1">
<text alignment="c" align="c" r="103" g="103" b="103" font="letterica18"/>
</loading_tip>
</w>
19 changes: 0 additions & 19 deletions src/Include/xrRender/ApplicationRender.h

This file was deleted.

1 change: 0 additions & 1 deletion src/Include/xrRender/FactoryPtr.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ FACTORY_PTR_INSTANCIATE(ConsoleRender)
#ifdef DEBUG
FACTORY_PTR_INSTANCIATE(ObjectSpaceRender)
#endif // DEBUG
FACTORY_PTR_INSTANCIATE(ApplicationRender)
FACTORY_PTR_INSTANCIATE(WallMarkArray)
#endif // _EDITOR

Expand Down
1 change: 0 additions & 1 deletion src/Include/xrRender/RenderFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ class IRenderFactory
#ifdef DEBUG
RENDER_FACTORY_INTERFACE(ObjectSpaceRender)
#endif // DEBUG
RENDER_FACTORY_INTERFACE(ApplicationRender)
RENDER_FACTORY_INTERFACE(WallMarkArray)
#endif // _EDITOR

Expand Down
Loading

0 comments on commit dae188f

Please sign in to comment.