Skip to content

Commit

Permalink
Added loading to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniil-SV committed May 10, 2024
1 parent 4da4297 commit ed17b1e
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 2 deletions.
16 changes: 16 additions & 0 deletions examples/Brawl Stars/Loading/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<h1 align="center" style="font-size: 26px;"> Custom Loading in Brawl Stars </h1>

Generic loading in ["loading.fla"](./loading.fla) file

<br/>

Loading is a bit tricky because it uses a 9-slice which requires some preparation. If you are using sc2fla in Python, then you need to turn all 9slice shapes into fills with a solid fill. Also you need to disable auto kerning in all textfields, otherwise it will not work for some reason.
But I have already made all these preparations and am sharing here a fla that you can customize as you want and export.

<p align="center">
<img src="./loading.gif">
</p>

<p align="center" style="font-size: 12px;">
My first custom loading for Ghoul Stars
</p>
Binary file added examples/Brawl Stars/Loading/loading.fla
Binary file not shown.
Binary file added examples/Brawl Stars/Loading/loading.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ In ["Brawl Stars/Face"](./Brawl%20Stars/Face/README.md) you can find facial anim

</br>

<h1 style="font-size: 22px;"> Game Loading </h1>

The first impression is very important!
In ["Brawl Stars/Loading"](./Brawl%20Stars/Loading/README.md) you can sample project to create your own loading screen.

<p align="center">
<img src="./Brawl Stars/Loading/loading.gif">
</p>

</br>

<h1 align="center" style="font-size: 26px;"> Clash royale </h1>

<h1 style="font-size: 22px;"> Character </h1>
Expand Down
4 changes: 2 additions & 2 deletions plugin/source/Window/PluginWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ namespace sc {

dialog->Destroy();
readyToExit = true;
this->Close();
});
this->Close(true);
});
}

StatusComponent* PluginWindow::CreateStatusBarComponent(
Expand Down

0 comments on commit ed17b1e

Please sign in to comment.