MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / TexPackOverlay_YesClick

Function TexPackOverlay_YesClick

src/Menus.c:2758–2766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2756}
2757
2758static void TexPackOverlay_YesClick(void* screen, void* widget) {
2759 struct TexPackOverlay* s = (struct TexPackOverlay*)screen;
2760 TexturePack_Extract(&s->url);
2761 if (TexPackOverlay_IsAlways(s, widget)) TextureUrls_Accept(&s->url);
2762 Gui_Remove((struct Screen*)s);
2763
2764 if (TexPackOverlay_IsAlways(s, widget)) CPE_SendNotifyAction(NOTIFY_ACTION_TEXTURE_PROMPT_RESPONDED, 3);
2765 else CPE_SendNotifyAction(NOTIFY_ACTION_TEXTURE_PROMPT_RESPONDED, 2);
2766}
2767
2768static void TexPackOverlay_NoClick(void* screen, void* widget) {
2769 struct TexPackOverlay* s = (struct TexPackOverlay*)screen;

Callers

nothing calls this directly

Calls 5

TexturePack_ExtractFunction · 0.85
TexPackOverlay_IsAlwaysFunction · 0.85
TextureUrls_AcceptFunction · 0.85
Gui_RemoveFunction · 0.85
CPE_SendNotifyActionFunction · 0.85

Tested by

no test coverage detected