*/}}
Bladeren bron

Added translation button in the splash screen

YimingWu 4 maanden geleden
bovenliggende
commit
144d7aa167
1 gewijzigde bestanden met toevoegingen van 9 en 0 verwijderingen
  1. 9 0
      ouroperations.c

+ 9 - 0
ouroperations.c

@@ -431,6 +431,15 @@ void ourui_SplashPanel(laUiList *uil, laPropPack *This, laPropPack *DetachedProp
     laShowLabel(uil,cl,"吴奕茗 Wu Yiming",0,0);
     laShowItemFull(uil, cl, 0, "LA_open_internet_link", 0, "text=Website;link=http://www.ChengduLittleA.com", 0, 0);
     laEndRow(uil,b);
+
+    laShowLabel(uil,cl," ",0,0);
+    b=laBeginRow(uil,cl,0,0);
+    laShowLabel(uil, cl, "语言/Language",0,0)->Flags|=LA_TEXT_MONO|LA_UI_FLAGS_DISABLED;
+    laShowItemFull(uil, cl, 0, "la.user_preferences.enable_translation",LA_WIDGET_ENUM_HIGHLIGHT,"text=翻译/Translate",0,0);
+    laEndRow(uil,b);
+    laUiItem* b1=laOnConditionThat(uil, cl, laPropExpression(0, "la.user_preferences.enable_translation"));
+    laShowItemFull(uil, cl, 0, "la.user_preferences.languages",LA_WIDGET_COLLECTION_SELECTOR,0,0,0);
+    laEndCondition(uil,b1);
 }
 void our_EnableSplashPanel(){
     laEnableSplashPanel(ourui_SplashPanel,0,100,0,2000,1500,0);