Skip to content

Commit

Permalink
added ProfileMenu Logout, added checks and commands for minimap. Impl…
Browse files Browse the repository at this point in the history
…ements #2, #4
  • Loading branch information
bertrandpsi committed Nov 8, 2017
1 parent 09371ef commit dceeec2
Show file tree
Hide file tree
Showing 10 changed files with 25,560 additions and 25,360 deletions.
2 changes: 1 addition & 1 deletion public/Engine/GUI/ProfileMenu/ProfileMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class ProfileMenu
html += "</tbody>";
html += "</table>";
html += "<br><br>";
html += "<center><div class='gameButton' onclick='ProfileMenu.ResetPlayer();'>Reset your player</div></center>";
html += "<center><div class='gameButton' onclick=\"document.location='#action=Logout';\">Logout</div> <div class='gameButton' onclick='ProfileMenu.ResetPlayer();'>Reset your player</div></center>";
$("#gameMenuPanelContent").html(html);
}

Expand Down
14 changes: 14 additions & 0 deletions public/Engine/Logic/Actions/HideMinimap.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@DialogActionClass
class HideMinimap extends ActionClass
{
public Display(id: number, values: string[], updateFunction?: string): string
{
var html = "";
return html;
}

public Execute(values: string[], env?: CodeEnvironement): void
{
play.showMinimap = false;
}
}
14 changes: 14 additions & 0 deletions public/Engine/Logic/Actions/ShowMinimap.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@DialogActionClass
class ShowMinimap extends ActionClass
{
public Display(id: number, values: string[], updateFunction?: string): string
{
var html = "";
return html;
}

public Execute(values: string[], env?: CodeEnvironement): void
{
play.showMinimap = true;
}
}
16 changes: 16 additions & 0 deletions public/Engine/Logic/Conditions/CheckMinimapIsHidden.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/// <reference path="../Dialogs/DialogCondition.ts" />

@DialogConditionClass
class CheckMinimapIsHidden extends ConditionClass
{
public Display(id: number, values: string[], updateFunction?: string): string
{
var html = "";
return html;
}

public Check(values: string[], env?: CodeEnvironement): boolean
{
return !play.showMinimap;
}
}
16 changes: 16 additions & 0 deletions public/Engine/Logic/Conditions/CheckMinimapIsVisible.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/// <reference path="../Dialogs/DialogCondition.ts" />

@DialogConditionClass
class CheckMinimapIsVisible extends ConditionClass
{
public Display(id: number, values: string[], updateFunction?: string): string
{
var html = "";
return html;
}

public Check(values: string[], env?: CodeEnvironement): boolean
{
return play.showMinimap;
}
}
4 changes: 2 additions & 2 deletions public/Engine/Module/About/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
var engineVersion = "1.2.1288";
var engineBuild = "Mon, 16 Oct 2017 08:51:00 GMT";
var engineVersion = "1.2.1311";
var engineBuild = "Wed, 08 Nov 2017 13:56:56 GMT";
Loading

0 comments on commit dceeec2

Please sign in to comment.