Skip to content

Commit

Permalink
deploy: e4dbde4
Browse files Browse the repository at this point in the history
  • Loading branch information
ricktu288 committed Oct 4, 2024
1 parent 87670c8 commit 42ee728
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 19 deletions.
30 changes: 13 additions & 17 deletions docs/sceneObjs_other_TextLabel.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,21 +76,6 @@ <h1 class="page-title">Source: sceneObjs/other/TextLabel.js</h1>
'Lucida Sans'
];

static fontStyles = {
'Normal': getMsg('normal'),
'Bold': getMsg('bold'),
'Italic': getMsg('italic'),
'Bold Italic': getMsg('bolditalic'),
'Oblique': getMsg('oblique'),
'Bold Oblique': getMsg('boldoblique')
};

static alignments = {
'left': getMsg('left'),
'center': getMsg('center'),
'right': getMsg('right')
};

populateObjBar(objBar) {
objBar.createText('', this.text, function (obj, value) {
obj.text = value;
Expand All @@ -109,13 +94,24 @@ <h1 class="page-title">Source: sceneObjs/other/TextLabel.js</h1>
}

if (objBar.showAdvanced(!this.arePropertiesDefault(['fontStyle']))) {
objBar.createDropdown(getMsg('fontStyle'), this.fontStyle, this.constructor.fontStyles, function (obj, value) {
objBar.createDropdown(getMsg('fontStyle'), this.fontStyle, {
'Normal': getMsg('normal'),
'Bold': getMsg('bold'),
'Italic': getMsg('italic'),
'Bold Italic': getMsg('bolditalic'),
'Oblique': getMsg('oblique'),
'Bold Oblique': getMsg('boldoblique')
}, function (obj, value) {
obj.fontStyle = value;
});
}

if (objBar.showAdvanced(!this.arePropertiesDefault(['alignment']))) {
objBar.createDropdown(getMsg('alignment'), this.alignment, this.constructor.alignments, function (obj, value) {
objBar.createDropdown(getMsg('alignment'), this.alignment, {
'left': getMsg('left'),
'center': getMsg('center'),
'right': getMsg('right')
}, function (obj, value) {
obj.alignment = value;
});
}
Expand Down
2 changes: 1 addition & 1 deletion simulator/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion simulator/main.js.map

Large diffs are not rendered by default.

0 comments on commit 42ee728

Please sign in to comment.