*/}}
Browse Source

Version and release notes button

YimingWu 1 year ago
parent
commit
148d6f0539
3 changed files with 10 additions and 4 deletions
  1. 6 3
      ouroperations.c
  2. 2 0
      ourpaint.h
  3. 2 1
      ourtranslations.c

+ 6 - 3
ouroperations.c

@@ -314,9 +314,11 @@ void ourui_SplashPanel(laUiList *uil, laPropPack *This, laPropPack *DetachedProp
     }else{
         laShowImage(uil,c,Our->SplashImage,5)->Flags|=LA_UI_IMAGE_FULL_W;
     }
-    laShowLabel(uil,cl,"Our Paint v0.1a",0,0);
+    laUiItem* b=laBeginRow(uil,cl,0,0); laShowLabel(uil,cl,OUR_PAINT_NAME_STRING,0,0);
+    laShowItemFull(uil, cl, 0, "LA_open_internet_link", 0, "icon=★;link=https://www.wellobserve.com/index.php?post=20230213211750;text=Release Notes", 0, 0);
+    laEndRow(uil,b);
     laShowLabel(uil,cl,"Our Paint is a free application.",0,0)->Flags|=LA_UI_FLAGS_DISABLED|LA_TEXT_LINE_WRAP|LA_UI_MIN_WIDTH;
-    laUiItem* b=laBeginRow(uil,cl,0,0);
+    b=laBeginRow(uil,cl,0,0);
     laShowLabel(uil, cl, OURPAINT_GIT_BRANCH,0,0)->Flags|=LA_TEXT_MONO|LA_UI_FLAGS_DISABLED;
 #ifdef OURPAINT_GIT_HASH
     laShowLabel(uil, cl, OURPAINT_GIT_HASH,0,0)->Flags|=LA_TEXT_MONO|LA_UI_FLAGS_DISABLED;
@@ -1772,6 +1774,7 @@ void ourui_MenuButtons(laUiList *uil, laPropPack *pp, laPropPack *actinst, laCol
         
         laShowLabel(muil, mc, "Help", 0, 0)->Flags|=LA_TEXT_MONO|LA_UI_FLAGS_DISABLED;
         laShowItemFull(muil, mc, 0, "LA_open_internet_link", 0, "icon=📖;link=http://www.ChengduLittleA.com/ourpaintmanual;text=User Manual", 0, 0);
+        laShowItemFull(muil, mc, 0, "LA_open_internet_link", 0, "icon=★;link=https://www.wellobserve.com/index.php?post=20230213211750;text=Release Notes", 0, 0);
         laShowItemFull(muil, mc, 0, "LA_open_internet_link", 0, "icon=🐞;link=https://www.wellobserve.com/repositories/chengdulittlea/OurPaint/issues;text=Report a Bug", 0, 0);
         
         laShowLabel(muil, mc, "Information", 0, 0)->Flags|=LA_TEXT_MONO|LA_UI_FLAGS_DISABLED;
@@ -2011,7 +2014,7 @@ void ourRegisterEverything(){
     laAssignNewKey(km, 0, "LA_undo", 0, LA_KEY_CTRL, LA_KEY_DOWN, ']', 0);
     laAssignNewKey(km, 0, "LA_redo", 0, LA_KEY_CTRL, LA_KEY_DOWN, '[', 0);
 
-    laSetMenuBarTemplates(ourui_MenuButtons, ourui_ToolExtras, "Our Paint v0.1a");
+    laSetMenuBarTemplates(ourui_MenuButtons, ourui_ToolExtras, OUR_PAINT_NAME_STRING);
 
     ourRegisterNodes();
 

+ 2 - 0
ourpaint.h

@@ -52,6 +52,8 @@ extern const char OUR_COMPOSITION_SHADER[];
 #define OUR_VERSION_MAJOR 0
 #define OUR_VERSION_MINOR 1
 
+#define OUR_PAINT_NAME_STRING "Our Paint v0.1b"
+
 STRUCTURE(OurCanvasDraw){
     laCanvasExtra Base;
     int HideBrushCircle;

+ 2 - 1
ourtranslations.c

@@ -23,6 +23,7 @@ extern tnsMain* T;
 extern OurPaint *Our;
 
 static const char *entries[]={
+"Release Notes","发行日志",
 "Spectral Brush","光谱笔刷",
 "Spectral","光谱",
 "Canvas Default Scale","画布默认比例",
@@ -97,7 +98,7 @@ static const char *entries[]={
 "Canvas Scale","画布缩放",
 "Others","其他",
 "Bit Depth:","位深度:",
-"Our Paint v0.1a","好得涂 v0.1a",
+"Our Paint v0.1b","好得涂 v0.1b",
 "New Layer","新图层",
 "Color Space:","色彩空间:",
 "Our Paint","好得涂",