|
@@ -33,9 +33,7 @@ void laset_TerminalInput(void* unused, char* content){
|
|
|
strcpy(MAIN.TerminalInput,content);
|
|
|
}
|
|
|
|
|
|
-void *laget_ActiveTheme(void *unused){
|
|
|
- return MAIN.CurrentTheme;
|
|
|
-}
|
|
|
+void *laget_ActiveTheme(void *unused){ return MAIN.CurrentTheme; }
|
|
|
void laset_ActiveTheme(void* unused, laTheme* t){
|
|
|
if(!t) MAIN.CurrentTheme = MAIN.Themes.pFirst;
|
|
|
else MAIN.CurrentTheme = t;
|
|
@@ -43,12 +41,8 @@ void laset_ActiveTheme(void* unused, laTheme* t){
|
|
|
la_RegenerateWireColors();
|
|
|
laRedrawAllWindows();
|
|
|
}
|
|
|
-void laset_ThemeName(laTheme *t, char *content){
|
|
|
- strSafeSet(&t->Name, content);
|
|
|
-}
|
|
|
-void laset_ThemeAuthor(laTheme *t, char *content){
|
|
|
- strSafeSet(&t->Author, content);
|
|
|
-}
|
|
|
+void laset_ThemeName(laTheme *t, char *content){ strSafeSet(&t->Name, content); }
|
|
|
+void laset_ThemeAuthor(laTheme *t, char *content){ strSafeSet(&t->Author, content); }
|
|
|
void laset_ThemeColor(laTheme* t, real* array){
|
|
|
tnsVectorCopy4d(array,t->Color);
|
|
|
la_RefreshThemeColor(t);
|
|
@@ -130,6 +124,11 @@ void laset_ThemeSVertexTransparency(laTheme* t, real val){ t->SelectedVertexTran
|
|
|
void laset_ThemeSEdgeTransparency(laTheme* t, real val){ t->SelectedEdgeTransparency = val; la_RefreshThemeColorSelf(t); laRedrawAllWindows(); }
|
|
|
void laset_ThemeSFaceTransparency(laTheme* t, real val){ t->SelectedFaceTransparency = val; la_RefreshThemeColorSelf(t); laRedrawAllWindows(); }
|
|
|
|
|
|
+void laread_UsingTheme(void* unused, char* name){ laTheme* t=laGetTheme(name); if(t){ laset_ActiveTheme(0,t); } }
|
|
|
+void laget_UsingTheme(void* unused, char* result, char**result_direct){ laTheme* t=laget_ActiveTheme(0);
|
|
|
+ if(t&&t->Name&&t->Name->Ptr){ *result_direct=t->Name->Ptr; return; } *result_direct="NOT FOUND";
|
|
|
+}
|
|
|
+
|
|
|
void laset_WireColorSlices(void* unused, int val){ MAIN.WireColorSlices = val; la_RegenerateWireColors(); laRedrawAllWindows(); }
|
|
|
void laset_WireThickness(void* unused, real val){ MAIN.WireThickness = val;laRedrawAllWindows(); }
|
|
|
void laset_WireSaggyness(void* unused, real val){ MAIN.WireSaggyness = val; laRedrawAllWindows(); }
|
|
@@ -1627,6 +1626,8 @@ void la_RegisterInternalProps(){
|
|
|
laAddFloatProperty(p, "color_picker_gamma", "Color Picker Gamma", "Allows less saturated colors to have more areas", 0,0,0,3.0,1.0, 0.05,1.5, 0,offsetof(LA, ColorPickerGamma), 0,laset_ColorPickerGamma,0,0,0,0,0,0,0,0,0);
|
|
|
laAddFloatProperty(p, "viewport_halftone_factor", "Halftone Factor", "Viewport halftone mixing factor", 0,0,0,1.0,0.0,0.05,0.5, 0,offsetof(LA, ViewportHalftoneFactor), 0,laset_ViewportHalftoneFactor,0,0,0,0,0,0,0,0,0);
|
|
|
laAddFloatProperty(p, "viewport_halftone_size", "Halftone Size", "Viewport halftone size", 0,0,0,8.0,1.9, 0.05,3.7, 0,offsetof(LA, ViewportHalftoneSize), 0,laset_ViewportHalftoneSize,0,0,0,0,0,0,0,0,0);
|
|
|
+
|
|
|
+ laAddStringProperty(p,"theme_name","Theme Name","Using theme name",0,0,0,0,0,0,0,laget_UsingTheme,0,laread_UsingTheme,0);
|
|
|
}
|
|
|
|
|
|
p = laAddPropertyContainer("la_translation_language", "Language", "Translation language pack", 0,0,sizeof(laTranslationNode), 0,0,1);{
|