mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-04 19:09:23 +00:00
Icons stream fix
This commit is contained in:
parent
a22e5992d0
commit
c6731365f1
1 changed files with 3 additions and 6 deletions
|
@ -30,6 +30,8 @@ namespace ml_pmc
|
||||||
Reset
|
Reset
|
||||||
}
|
}
|
||||||
|
|
||||||
|
readonly static string ms_namespace = typeof(ModUi).Namespace;
|
||||||
|
|
||||||
public static readonly UiEvent<string> OnTargetSelect = new UiEvent<string>();
|
public static readonly UiEvent<string> OnTargetSelect = new UiEvent<string>();
|
||||||
|
|
||||||
static List<QMUIElement> ms_uiElements = null;
|
static List<QMUIElement> ms_uiElements = null;
|
||||||
|
@ -132,11 +134,6 @@ namespace ml_pmc
|
||||||
(ms_uiElements[(int)UiIndex.Toggle] as Button).ButtonIcon = (p_state ? "PMC-Dancing-On" : "PMC-Dancing");
|
(ms_uiElements[(int)UiIndex.Toggle] as Button).ButtonIcon = (p_state ? "PMC-Dancing-On" : "PMC-Dancing");
|
||||||
}
|
}
|
||||||
|
|
||||||
static Stream GetIconStream(string p_name)
|
static Stream GetIconStream(string p_name) => Assembly.GetExecutingAssembly().GetManifestResourceStream(ms_namespace + ".resources." + p_name);
|
||||||
{
|
|
||||||
Assembly l_assembly = Assembly.GetExecutingAssembly();
|
|
||||||
string l_assemblyName = l_assembly.GetName().Name;
|
|
||||||
return l_assembly.GetManifestResourceStream(l_assemblyName + ".resources." + p_name);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue