Update ucccccp
This commit is contained in:
parent
d1eea45877
commit
9cfa1c71b4
6
.gitmodules
vendored
6
.gitmodules
vendored
@ -1,6 +1,3 @@
|
|||||||
[submodule "ucccccp"]
|
|
||||||
path = ucccccp
|
|
||||||
url = https://github.com/nullworks/ucccccp
|
|
||||||
[submodule "source-sdk-2013-headers"]
|
[submodule "source-sdk-2013-headers"]
|
||||||
path = source-sdk-2013-headers
|
path = source-sdk-2013-headers
|
||||||
url = https://github.com/nullworks/source-sdk-2013-headers
|
url = https://github.com/nullworks/source-sdk-2013-headers
|
||||||
@ -13,3 +10,6 @@
|
|||||||
[submodule "simple-ipc"]
|
[submodule "simple-ipc"]
|
||||||
path = simple-ipc
|
path = simple-ipc
|
||||||
url = https://github.com/nullworks/simple-ipc
|
url = https://github.com/nullworks/simple-ipc
|
||||||
|
[submodule "ucccccp"]
|
||||||
|
path = ucccccp
|
||||||
|
url = https://github.com/nullworks/ucccccp.git
|
||||||
|
@ -64,6 +64,7 @@ static CatVar spinner_min_speed(CV_FLOAT, "fidgetspinner_min_speed", "2",
|
|||||||
|
|
||||||
draw_api::texture_handle_t text{ GLEZ_TEXTURE_INVALID };
|
draw_api::texture_handle_t text{ GLEZ_TEXTURE_INVALID };
|
||||||
|
|
||||||
|
Timer retrytimer{};
|
||||||
void DrawSpinner()
|
void DrawSpinner()
|
||||||
{
|
{
|
||||||
if (not enable_spinner)
|
if (not enable_spinner)
|
||||||
@ -96,8 +97,14 @@ void DrawSpinner()
|
|||||||
const glez_rgba_t color = glez_rgba(255, 255, 255, 255);
|
const glez_rgba_t color = glez_rgba(255, 255, 255, 255);
|
||||||
|
|
||||||
if (text.handle == GLEZ_TEXTURE_INVALID)
|
if (text.handle == GLEZ_TEXTURE_INVALID)
|
||||||
|
{
|
||||||
|
if (retrytimer.test_and_set(5000))
|
||||||
|
{
|
||||||
|
logging::Info("Invalid texture, retrying...");
|
||||||
text = draw_api::create_texture(DATA_PATH "/textures/atlas.png");
|
text = draw_api::create_texture(DATA_PATH "/textures/atlas.png");
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
draw_api::draw_rect_textured(draw::width / 2, draw::height / 2, size, size,
|
draw_api::draw_rect_textured(draw::width / 2, draw::height / 2, size, size,
|
||||||
colors::white, text, 0 + 64 * state,
|
colors::white, text, 0 + 64 * state,
|
||||||
(3 + (v9mode ? 1 : 0)) * 64, 64, 64, angle);
|
(3 + (v9mode ? 1 : 0)) * 64, 64, 64, angle);
|
||||||
|
2
ucccccp
2
ucccccp
@ -1 +1 @@
|
|||||||
Subproject commit 70ec1ad99e11d1ea37796de0d69eeb38a8b4a200
|
Subproject commit e97ff4ad6fbd69a56156797a99527cc5a69c9e52
|
Reference in New Issue
Block a user