remove isGF
This commit is contained in:
@@ -23,7 +23,6 @@ class CharacterInfoScreen extends UISubstateWindow {
|
||||
public var singTimeStepper:UINumericStepper;
|
||||
public var customPropertiesButtonList:UIButtonList<PropertyButton>;
|
||||
public var isPlayerCheckbox:UICheckbox;
|
||||
public var isGFCheckbox:UICheckbox;
|
||||
|
||||
public var saveButton:UIButton;
|
||||
public var closeButton:UIButton;
|
||||
@@ -119,11 +118,7 @@ class CharacterInfoScreen extends UISubstateWindow {
|
||||
add(isPlayerCheckbox);
|
||||
addLabelOn(isPlayerCheckbox, "Is Player");
|
||||
|
||||
isGFCheckbox = new UICheckbox(isPlayerCheckbox.x + 128, positionXStepper.y + 10 + 32 + 28, "isGF", character.isGF);
|
||||
add(isGFCheckbox);
|
||||
addLabelOn(isGFCheckbox, "Is GF");
|
||||
|
||||
for (checkbox in [isPlayerCheckbox, isGFCheckbox, antialiasingCheckbox, flipXCheckbox])
|
||||
for (checkbox in [isPlayerCheckbox, antialiasingCheckbox, flipXCheckbox])
|
||||
{checkbox.y += 4; checkbox.x += 6;}
|
||||
|
||||
saveButton = new UIButton(windowSpr.x + windowSpr.bWidth - 20, windowSpr.y + windowSpr.bHeight- 20, "Save & Close", function() {
|
||||
@@ -168,7 +163,6 @@ class CharacterInfoScreen extends UISubstateWindow {
|
||||
|
||||
var xml = Xml.createElement("character");
|
||||
xml.set("isPlayer", isPlayerCheckbox.checked ? "true" : "false");
|
||||
xml.set("isGF", isGFCheckbox.checked ? "true" : "false");
|
||||
xml.set("x", Std.string(positionXStepper.value));
|
||||
xml.set("y", Std.string(positionYStepper.value));
|
||||
xml.set("gameOverChar", gameOverCharTextBox.label.text);
|
||||
|
||||
@@ -34,7 +34,6 @@ class Character extends FunkinSprite implements IBeatReceiver implements IOffset
|
||||
public var stunned(default, set):Bool = false;
|
||||
|
||||
public var isPlayer:Bool = false;
|
||||
public var isGF:Bool = false;
|
||||
public var curCharacter:String = 'bf';
|
||||
public var sprite:String = 'bf';
|
||||
|
||||
@@ -386,7 +385,6 @@ class Character extends FunkinSprite implements IBeatReceiver implements IOffset
|
||||
sprite = curCharacter;
|
||||
|
||||
if (xml.x.exists("isPlayer")) playerOffsets = (xml.x.get("isPlayer") == "true");
|
||||
if (xml.x.exists("isGF")) isGF = (xml.x.get("isGF") == "true");
|
||||
if (xml.x.exists("x")) globalOffset.x = Std.parseFloat(xml.x.get("x"));
|
||||
if (xml.x.exists("y")) globalOffset.y = Std.parseFloat(xml.x.get("y"));
|
||||
if (xml.x.exists("gameOverChar")) gameOverCharacter = xml.x.get("gameOverChar");
|
||||
@@ -407,7 +405,7 @@ class Character extends FunkinSprite implements IBeatReceiver implements IOffset
|
||||
var hasInterval:Bool = xml.x.exists("interval");
|
||||
if (hasInterval) beatInterval = Std.parseInt(xml.x.get("interval"));
|
||||
|
||||
var tempList = ["isPlayer", "isGF", "x", "y", "gameOverChar", "camx", "camy", "holdTime", "flipX", "icon", "color", "scale", "antialiasing", "sprite", "interval"];
|
||||
var tempList = ["isPlayer", "x", "y", "gameOverChar", "camx", "camy", "holdTime", "flipX", "icon", "color", "scale", "antialiasing", "sprite", "interval"];
|
||||
var atts = xml.x.attributes();
|
||||
for (i in atts)
|
||||
if (!tempList.contains(i))
|
||||
@@ -429,7 +427,6 @@ class Character extends FunkinSprite implements IBeatReceiver implements IOffset
|
||||
public function buildXML(?animsOrder:Array<String>):Xml {
|
||||
var xml = Xml.createElement("character");
|
||||
xml.set("isPlayer", playerOffsets == true ? "true" : "false");
|
||||
xml.set("isGF", isGF == true ? "true" : "false");
|
||||
xml.set("x", Std.string(globalOffset.x));
|
||||
xml.set("y", Std.string(globalOffset.y));
|
||||
xml.set("gameOverChar", gameOverCharacter);
|
||||
|
||||
Reference in New Issue
Block a user