public override void draw(SBWrapper wrapper) { drawBackground(wrapper); tile.draw(wrapper, new Vector2(5, 5)); wrapper.drawString("(T)exture: " + tile.filename, new Vector2(25, 5)); wrapper.drawString("(W)alkable: " + UiTextDisplay.YesOrNo(tile.collision), new Vector2(5, 25)); wrapper.drawString("(N)PC: " + UiTextDisplay.TextOrNull(npc), new Vector2(5, 45)); wrapper.drawString("(S)cript: " + UiTextDisplay.TextOrNull(script), new Vector2(5, 65)); }
public override void draw(SBWrapper wrapper) { drawBackground(wrapper); if (npc != null) { npc.draw(wrapper, new Vector2(5, 5)); } wrapper.drawString("(T)exture: " + ((npc != null) ? npc.filename : "N/A"), new Vector2(25, 5)); wrapper.drawString("(N)ame: " + ((npc != null) ? UiTextDisplay.TextOrNull(npc.name) : "N/A"), new Vector2(5, 25)); wrapper.drawString("(S)cript: " + ((npc != null) ? UiTextDisplay.TextOrNull(npc.script) : "N/A"), new Vector2(5, 45)); wrapper.drawString("(L)ocked: " + ((npc != null) ? UiTextDisplay.YesOrNo(npc.locked) : "N/A"), new Vector2(5, 65)); wrapper.drawString("(D)elete", new Vector2(5, 85)); }