Skip to content

Commit

Permalink
Merge pull request #292 from ImpulseAdventure/pconti-17b40
Browse files Browse the repository at this point in the history
bug fix to text model to avoid page refresh
  • Loading branch information
Pconti31 authored Feb 23, 2025
2 parents d5171a1 + 99cb6f1 commit a8c5da5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ You will need to select "Allow Anyway" to continue.

## Release History

### Bug Fixes for 0.17.b40

A bug in the Text Model has been fixed. The bug caused generated code for text fields
to set gslc_ElemSetFillEn(&m_gui,pElemRef,false); (basically claiming the text field is transparent).
This was forcing full page refreshes to occur on each update loop.

### Bug Fixes for 0.17.b39

- Bug Fix 278 - GuiSlice builder 0.17.b38 - Text problem
Expand Down
2 changes: 1 addition & 1 deletion builder/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repositories {
mainClassName = "builder.Builder"
applicationName = "GUIslice"
archivesBaseName = 'builder'
project.version = '0.17.b39'
project.version = '0.17.b40'

processResources {
from("src/main/java/") {
Expand Down
2 changes: 1 addition & 1 deletion builder/src/main/java/builder/Builder.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public class Builder extends JDesktopPane {
private static final long serialVersionUID = 1L;

/** The Constant VERSION. */
public static final String VERSION = "0.17.b39";
public static final String VERSION = "0.17.b40";

/** The Constant VERSION_NO is for save and restore of user preferences. */
public static final String VERSION_NO = "-16";
Expand Down
2 changes: 1 addition & 1 deletion builder/src/main/java/builder/models/TextModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ public void changeThemeColors(GUIsliceTheme theme) {
GUIsliceThemeElement element = theme.getElement("Text");
if (element != null) {
data[PROP_USE_FLASH][PROP_VAL_VALUE] = element.isUse_flash();
data[PROP_FILL_EN][PROP_VAL_VALUE] = element.isCornersRounded();
data[PROP_FILL_EN][PROP_VAL_VALUE] = element.isFillEnabled();
data[PROP_FRAME_EN][PROP_VAL_VALUE] = element.isFrameEnabled();
if (element.getTextCol() != null)
data[PROP_TEXT_COLOR][PROP_VAL_VALUE] = element.getTextCol();
Expand Down

0 comments on commit a8c5da5

Please sign in to comment.