mirror of
https://gitgud.io/BondageProjects/Bondage-College.git
synced 2025-04-25 17:59:34 +00:00
Big Commit
Many bug fixes Online friends list Allow walking while kneeling
This commit is contained in:
parent
d705d81d5b
commit
2fe559e4dc
18 changed files with 112 additions and 28 deletions
BondageClub
Assets/Female3DCG
Backgrounds
CSS
Icons
Screens
Character
Inventory
Online/ChatRoom
Room/MainHall
Scripts
index.html
|
@ -346,7 +346,7 @@ var AssetFemale3DCG = [
|
|||
Priority: 22,
|
||||
ParentGroup: "BodyLower",
|
||||
Default: false,
|
||||
Effect: ["Prone"],
|
||||
Effect: ["Prone", "KneelFreeze"],
|
||||
Color: ["Default"],
|
||||
SetPose: ["LegsClosed"],
|
||||
AllowPose: ["Kneel"],
|
||||
|
@ -490,7 +490,7 @@ var AssetFemale3DCG = [
|
|||
{ Name: "StraitLeotard", SelfBondage: false, Value: 200, SetPose: ["BackElbowTouch"], Hide: ["Cloth", "ClothLower"], Block: ["ItemNipples", "ItemVulva", "ItemButt", "ItemPelvis", "ItemTorso", "ItemBreast"], Effect: ["Block", "Prone"], Time: 35, RemoveTime: 20, Difficulty: 13, AllowLock: true },
|
||||
{ Name: "PawMittens", SelfBondage: false, Value: 60, Effect: ["Block", "Prone"], Time: 15, Difficulty: 4, AllowLock: true },
|
||||
{ Name: "DuctTape", SelfBondage: false, Extended: true, Value: 50, AllowPose: ["TapedHands"], Hide: ["Gloves"], SetPose: ["TapedHands"], Effect: ["Block", "Prone"], Time: 20, RemoveTime: 10, Difficulty: 5, BuyGroup: "DuctTape" },
|
||||
{ Name: "BitchSuit", Random: false, SelfBondage: false, Value: 250, SetPose: ["BackElbowTouch", "Kneel"], Hide: ["Cloth", "ClothLower"], Block: ["ItemNipples", "ItemVulva", "ItemButt", "ItemPelvis", "ItemTorso", "ItemBreast"], Effect: ["Block", "Prone", "Freeze"], Time: 40, RemoveTime: 30, Difficulty: 15, AllowLock: true, Prerequisite: "NotSuspended" }
|
||||
{ Name: "BitchSuit", Random: false, SelfBondage: false, Value: 250, SetPose: ["BackElbowTouch", "Kneel"], Hide: ["Cloth", "ClothLower"], Block: ["ItemNipples", "ItemVulva", "ItemButt", "ItemPelvis", "ItemTorso", "ItemBreast"], Effect: ["Block", "Prone", "ForceKneel"], Time: 40, RemoveTime: 30, Difficulty: 15, AllowLock: true, Prerequisite: "NotSuspended" }
|
||||
]
|
||||
},
|
||||
|
||||
|
|
BIN
BondageClub/Backgrounds/BrickWall.jpg
Normal file
BIN
BondageClub/Backgrounds/BrickWall.jpg
Normal file
Binary file not shown.
After ![]() (image error) Size: 274 KiB |
|
@ -50,4 +50,19 @@ canvas {
|
|||
.ChatMessageWhisper {
|
||||
font-style: italic;
|
||||
color: silver;
|
||||
}
|
||||
#FriendList {
|
||||
border: 2px solid white;
|
||||
overflow: auto;
|
||||
word-wrap: break-word;
|
||||
padding: 0 !important;
|
||||
padding-bottom: 1% !important;
|
||||
padding-left: 5% !important;
|
||||
}
|
||||
.FriendListBlock{
|
||||
float: left;
|
||||
width: 30%;
|
||||
text-align: center;
|
||||
color: white;
|
||||
padding-top: 1% !important;
|
||||
}
|
BIN
BondageClub/Icons/FriendList.png
Normal file
BIN
BondageClub/Icons/FriendList.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 1.7 KiB |
BIN
BondageClub/Icons/Small/Character.png
Normal file
BIN
BondageClub/Icons/Small/Character.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 1.5 KiB |
39
BondageClub/Screens/Character/FriendList/FriendList.js
Normal file
39
BondageClub/Screens/Character/FriendList/FriendList.js
Normal file
|
@ -0,0 +1,39 @@
|
|||
"use strict";
|
||||
var FriendListBackground = "BrickWall";
|
||||
var FriendListContent = "";
|
||||
|
||||
// Loads the online friend list from the server
|
||||
function FriendListLoad() {
|
||||
ElementCreateDiv("FriendList");
|
||||
ElementPositionFix("FriendList", 36, 0, 70, 2000, 930);
|
||||
ElementContent("FriendList", FriendListContent);
|
||||
ServerSend("AccountQuery", {Query: "OnlineFriends"});
|
||||
}
|
||||
|
||||
// Run the friend list screen - Draw the controls
|
||||
function FriendListRun() {
|
||||
DrawText(TextGet("OnlineFriend"), 380, 35, "White", "Gray");
|
||||
DrawText(TextGet("MemberNumber"), 940, 35, "White", "Gray");
|
||||
DrawText(TextGet("ChatRoomName"), 1500, 35, "White", "Gray");
|
||||
ElementPositionFix("FriendList", 36, 5, 75, 1885, 890);
|
||||
DrawButton(1935, 5, 60, 60, "", "White", "Icons/Small/Exit.png");
|
||||
}
|
||||
|
||||
// When the user clicks on the screen
|
||||
function FriendListClick() {
|
||||
if ((MouseX >= 1935) && (MouseX < 1995) && (MouseY >= 5) && (MouseY < 65)) {
|
||||
ElementRemove("FriendList");
|
||||
CommonSetScreen("Character", "InformationSheet");
|
||||
}
|
||||
}
|
||||
|
||||
// Loads the friend list data in the div
|
||||
function FriendListLoadFriendList(data) {
|
||||
FriendListContent = "";
|
||||
for (var F = 0; F < data.length; F++) {
|
||||
FriendListContent = FriendListContent + "<div class='FriendListBlock'>" + data[F].MemberName + "</div>";
|
||||
FriendListContent = FriendListContent + "<div class='FriendListBlock'>" + data[F].MemberNumber.toString() + "</div>";
|
||||
FriendListContent = FriendListContent + "<div class='FriendListBlock'>" + ((data[F].ChatRoomName == null) ? "-" : data[F].ChatRoomName) + "</div>";
|
||||
}
|
||||
ElementContent("FriendList", FriendListContent);
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
OnlineFriend,Online friends
|
||||
MemberNumber,Member number
|
||||
ChatRoomName,Current chat room
|
|
|
@ -108,6 +108,7 @@ function InformationSheetRun() {
|
|||
MainCanvas.textAlign = "center";
|
||||
DrawButton(1815, 75, 90, 90, "", "White", "Icons/Exit.png");
|
||||
if (C.ID == 0) DrawButton(1815, 190, 90, 90, "", "White", "Icons/Preference.png");
|
||||
if (C.ID == 0) DrawButton(1815, 305, 90, 90, "", "White", "Icons/FriendList.png");
|
||||
|
||||
}
|
||||
|
||||
|
@ -115,6 +116,7 @@ function InformationSheetRun() {
|
|||
function InformationSheetClick() {
|
||||
if ((MouseX >= 1815) && (MouseX < 1905) && (MouseY >= 75) && (MouseY < 165)) CommonSetScreen(InformationSheetPreviousModule, InformationSheetPreviousScreen);
|
||||
if ((MouseX >= 1815) && (MouseX < 1905) && (MouseY >= 190) && (MouseY < 280) && (InformationSheetSelection.ID == 0)) CommonSetScreen("Character", "Preference");
|
||||
if ((MouseX >= 1815) && (MouseX < 1905) && (MouseY >= 305) && (MouseY < 395) && (InformationSheetSelection.ID == 0)) CommonSetScreen("Character", "FriendList");
|
||||
}
|
||||
|
||||
// Loads the information sheet for a character
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// Loads the item extension properties
|
||||
function InventoryItemMouthPumpGagLoad() {
|
||||
if (DialogFocusItem.Property == null) DialogFocusItem.Property = { PumpLevel: 0 };
|
||||
if (DialogFocusItem.Property.PumpLevel == null) DialogFocusItem.Property.PumpLevel = 0;
|
||||
}
|
||||
|
||||
// Draw the item extension screen
|
||||
|
@ -11,8 +12,8 @@ function InventoryItemMouthPumpGagDraw() {
|
|||
DrawImageResize("Assets/" + DialogFocusItem.Asset.Group.Family + "/" + DialogFocusItem.Asset.Group.Name + "/Preview/" + DialogFocusItem.Asset.Name + ".png", 1389, 227, 221, 221);
|
||||
DrawTextFit(DialogFocusItem.Asset.Description, 1500, 475, 221, "black");
|
||||
DrawText(DialogFind(Player, "PumpLevel" + DialogFocusItem.Property.PumpLevel.toString()), 1500, 600, "White", "Gray");
|
||||
DrawButton(1200, 700, 250, 65, DialogFind(Player, "DeflateIt"), "White");
|
||||
DrawButton(1550, 700, 250, 65, DialogFind(Player, "PumpIt"), "White");
|
||||
if (DialogFocusItem.Property.PumpLevel > 0) DrawButton(1200, 700, 250, 65, DialogFind(Player, "DeflateIt"), "White");
|
||||
if (DialogFocusItem.Property.PumpLevel < 4) DrawButton(1550, 700, 250, 65, DialogFind(Player, "PumpIt"), "White");
|
||||
DrawButton(1885, 25, 90, 90, "", "White", "Icons/Exit.png");
|
||||
}
|
||||
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
// Loads the item extension properties
|
||||
function InventoryItemNeckShockCollarLoad() {
|
||||
if (DialogFocusItem.Property == null) DialogFocusItem.Property = { Intensity: 0, ShowText: true };
|
||||
if (DialogFocusItem.Property.Intensity == null) DialogFocusItem.Property.Intensity = 0;
|
||||
if (DialogFocusItem.Property.ShowText == null) DialogFocusItem.Property.ShowText = true;
|
||||
}
|
||||
|
||||
// Draw the item extension screen
|
||||
|
|
|
@ -22,7 +22,7 @@ function ChatRoomCreateElement() {
|
|||
ElementCreateInput("InputChat", "text", "", "250");
|
||||
document.getElementById("InputChat").setAttribute("autocomplete", "off");
|
||||
ElementCreateDiv("TextAreaChatLog");
|
||||
ElementPositionFix("TextAreaChatLog", 36, 1005, 5, 990, 925);
|
||||
ElementPositionFix("TextAreaChatLog", 36, 1005, 5, 988, 923);
|
||||
ElementContent("TextAreaChatLog", ChatRoomLog);
|
||||
ElementScrollToEnd("TextAreaChatLog");
|
||||
ElementFocus("InputChat");
|
||||
|
@ -49,7 +49,6 @@ function ChatRoomDrawCharacter(DoClick) {
|
|||
if (ChatRoomCharacter.length == 4) DrawImageZoomCanvas("Backgrounds/" + ChatRoomData.Background + Dark + ".jpg", MainCanvas, 200, 0, 1600, 1000, 0, 150, 1000, 700);
|
||||
if (ChatRoomCharacter.length == 5) DrawImageZoomCanvas("Backgrounds/" + ChatRoomData.Background + Dark + ".jpg", MainCanvas, 0, 0, 2000, 1000, 0, 250, 1000, 500);
|
||||
if (ChatRoomCharacter.length >= 6) DrawImageZoomCanvas("Backgrounds/" + ChatRoomData.Background + Dark + ".jpg", MainCanvas, 0, 0, 2000, 1000, 0, 0, 1000, 500);
|
||||
if (ChatRoomCharacter.length >= 6) DrawImageZoomCanvas("Backgrounds/" + ChatRoomData.Background + Dark + ".jpg", MainCanvas, 0, 0, 2000, 1000, 0, 500, 1000, 500);
|
||||
}
|
||||
|
||||
// Sets the X position
|
||||
|
@ -88,13 +87,21 @@ function ChatRoomDrawCharacter(DoClick) {
|
|||
}
|
||||
}
|
||||
else {
|
||||
|
||||
// Draw the background a second time for characters 6 to 10 (we do it here to correct clipping errors from the first part)
|
||||
if ((C == 5) && (Player.Effect.indexOf("BlindHeavy") < 0) && (Player.Effect.indexOf("BlindNormal") < 0)) DrawImageZoomCanvas("Backgrounds/" + ChatRoomData.Background + ((Player.Effect.indexOf("BlindLight") < 0) ? "" : "Dark") + ".jpg", MainCanvas, 0, 0, 2000, 1000, 0, 500, 1000, 500);
|
||||
|
||||
// Draw the character
|
||||
DrawCharacter(ChatRoomCharacter[C], (C % 5) * Space + X, Y + Math.floor(C / 5) * 500, Zoom);
|
||||
if (ChatRoomTargetMemberNumber == ChatRoomCharacter[C].MemberNumber) DrawImage("Icons/Small/Whisper.png", (C % 5) * Space + X + 75 * Zoom, Y + Math.floor(C / 5) * 500 + 950 * Zoom);
|
||||
|
||||
// Draw the friendlist / blacklist / whitelist icons
|
||||
if (ChatRoomCharacter[C].MemberNumber != null) {
|
||||
if (Player.WhiteList.indexOf(ChatRoomCharacter[C].MemberNumber) >= 0) DrawImage("Icons/Small/WhiteList.png", (C % 5) * Space + X + 75 * Zoom, Y + Math.floor(C / 5) * 500);
|
||||
else if (Player.BlackList.indexOf(ChatRoomCharacter[C].MemberNumber) >= 0) DrawImage("Icons/Small/BlackList.png", (C % 5) * Space + X + 75 * Zoom, Y + Math.floor(C / 5) * 500);
|
||||
if (Player.FriendList.indexOf(ChatRoomCharacter[C].MemberNumber) >= 0) DrawImage("Icons/Small/FriendList.png", (C % 5) * Space + X + 375 * Zoom, Y + Math.floor(C / 5) * 500);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -118,11 +125,12 @@ function ChatRoomRun() {
|
|||
ChatRoomBackground = "";
|
||||
DrawRect(0, 0, 2000, 1000, "Black");
|
||||
ChatRoomDrawCharacter(false);
|
||||
ElementPosition("InputChat", 1365, 959, 720);
|
||||
ElementPositionFix("TextAreaChatLog", 36, 1005, 5, 990, 925);
|
||||
DrawButton(1725, 935, 60, 60, "", "White", "Icons/Small/Chat.png");
|
||||
if (Player.CanKneel()) DrawButton(1795, 935, 60, 60, "", "White", "Icons/Small/Kneel.png");
|
||||
if (Player.CanInteract() && !LogQuery("BlockChange", "Rule")) DrawButton(1865, 935, 60, 60, "", "White", "Icons/Small/Dress.png");
|
||||
ElementPosition("InputChat", 1339, 959, 668);
|
||||
ElementPositionFix("TextAreaChatLog", 36, 1005, 5, 988, 923);
|
||||
DrawButton(1675, 935, 60, 60, "", "White", "Icons/Small/Chat.png");
|
||||
if (Player.CanKneel()) DrawButton(1740, 935, 60, 60, "", "White", "Icons/Small/Kneel.png");
|
||||
if (Player.CanInteract() && !LogQuery("BlockChange", "Rule")) DrawButton(1805, 935, 60, 60, "", "White", "Icons/Small/Dress.png");
|
||||
DrawButton(1870, 935, 60, 60, "", "White", "Icons/Small/Character.png");
|
||||
if (Player.CanWalk()) DrawButton(1935, 935, 60, 60, "", "White", "Icons/Small/Exit.png");
|
||||
}
|
||||
|
||||
|
@ -131,17 +139,17 @@ function ChatRoomClick() {
|
|||
|
||||
// When the user chats
|
||||
if ((MouseX >= 0) && (MouseX < 1000) && (MouseY >= 0) && (MouseY < 1000)) ChatRoomDrawCharacter(true);
|
||||
if ((MouseX >= 1725) && (MouseX < 1785) && (MouseY >= 935) && (MouseY < 995)) ChatRoomSendChat();
|
||||
if ((MouseX >= 1675) && (MouseX < 1735) && (MouseY >= 935) && (MouseY < 995)) ChatRoomSendChat();
|
||||
|
||||
// When the player kneels
|
||||
if ((MouseX >= 1795) && (MouseX < 1855) && (MouseY >= 935) && (MouseY < 995) && Player.CanKneel()) {
|
||||
if ((MouseX >= 1740) && (MouseX < 1800) && (MouseY >= 935) && (MouseY < 995) && Player.CanKneel()) {
|
||||
ServerSend("ChatRoomChat", { Content: Player.Name + " " + TextGet((Player.ActivePose == null) ? "KneelDown": "StandUp"), Type: "Action" } );
|
||||
CharacterSetActivePose(Player, (Player.ActivePose == null) ? "Kneel" : null);
|
||||
ChatRoomCharacterUpdate(Player);
|
||||
}
|
||||
|
||||
// When the user wants to change clothes
|
||||
if ((MouseX >= 1865) && (MouseX < 1925) && (MouseY >= 935) && (MouseY < 995) && Player.CanInteract() && !LogQuery("BlockChange", "Rule")) {
|
||||
if ((MouseX >= 1805) && (MouseX < 1865) && (MouseY >= 935) && (MouseY < 995) && Player.CanInteract() && !LogQuery("BlockChange", "Rule")) {
|
||||
ElementRemove("InputChat");
|
||||
ElementRemove("TextAreaChatLog");
|
||||
CharacterAppearanceReturnRoom = "ChatRoom";
|
||||
|
@ -149,6 +157,13 @@ function ChatRoomClick() {
|
|||
CharacterAppearanceLoadCharacter(Player);
|
||||
}
|
||||
|
||||
// When the user checks her profile
|
||||
if ((MouseX >= 1870) && (MouseX < 1930) && (MouseY >= 935) && (MouseY < 995)) {
|
||||
ElementRemove("InputChat");
|
||||
ElementRemove("TextAreaChatLog");
|
||||
InformationSheetLoadCharacter(Player);
|
||||
}
|
||||
|
||||
// When the user leaves
|
||||
if ((MouseX >= 1935) && (MouseX < 1995) && (MouseY >= 935) && (MouseY < 995) && (Player.CanWalk())) {
|
||||
ElementRemove("InputChat");
|
||||
|
@ -347,7 +362,7 @@ function ChatRoomSync(data) {
|
|||
if ((data != null) && (typeof data === "object") && (data.Name != null)) {
|
||||
|
||||
// Load the room
|
||||
if ((CurrentScreen != "ChatRoom") && (CurrentScreen != "Appearance")) CommonSetScreen("Online", "ChatRoom");
|
||||
if ((CurrentScreen != "ChatRoom") && (CurrentScreen != "Appearance") && (CurrentModule != "Character")) CommonSetScreen("Online", "ChatRoom");
|
||||
|
||||
// Load the characters
|
||||
ChatRoomCharacter = [];
|
||||
|
|
|
@ -11,6 +11,7 @@ function MainHallCanTrickMaid() { return (ManagementIsClubSlave() && SarahUnlock
|
|||
|
||||
// Main hall loading
|
||||
function MainHallLoad() {
|
||||
CharacterSetActivePose(Player, null);
|
||||
MainHallBackground = "MainHall";
|
||||
MainHallStartEventTimer = null;
|
||||
MainHallNextEventTimer = null;
|
||||
|
|
|
@ -30,8 +30,8 @@ function CharacterReset(CharacterID, CharacterAssetFamily) {
|
|||
AllowItem: true,
|
||||
HeightModifier: 0,
|
||||
CanTalk : function() { return ((this.Effect.indexOf("GagLight") < 0) && (this.Effect.indexOf("GagNormal") < 0) && (this.Effect.indexOf("GagHeavy") < 0) && (this.Effect.indexOf("GagTotal") < 0)) },
|
||||
CanWalk : function() { return ((this.Effect.indexOf("Freeze") < 0) && ((this.Pose == null) || (this.Pose.indexOf("Kneel") < 0))) },
|
||||
CanKneel : function() { return ((this.Effect.indexOf("Freeze") < 0) && ((this.Pose == null) || (this.Pose.indexOf("LegsClosed") < 0))) },
|
||||
CanWalk : function() { return ((this.Effect.indexOf("Freeze") < 0) && ((this.Pose == null) || (this.Pose.indexOf("Kneel") < 0) || (this.Effect.indexOf("KneelFreeze") < 0))) },
|
||||
CanKneel : function() { return ((this.Effect.indexOf("Freeze") < 0) && (this.Effect.indexOf("ForceKneel") < 0) && ((this.Pose == null) || (this.Pose.indexOf("LegsClosed") < 0))) },
|
||||
CanInteract : function() { return (this.Effect.indexOf("Block") < 0) },
|
||||
CanChange : function() { return ((this.Effect.indexOf("Freeze") < 0) && (this.Effect.indexOf("Block") < 0) && (this.Effect.indexOf("Prone") < 0) && !LogQuery("BlockChange", "Rule")) },
|
||||
IsProne : function() { return (this.Effect.indexOf("Prone") >= 0) },
|
||||
|
|
|
@ -184,9 +184,9 @@ function DialogMenuButtonBuild(C) {
|
|||
// Main buttons
|
||||
if (DialogProgress < 0) {
|
||||
if (DialogInventory >= 12) DialogMenuButton.push("Next");
|
||||
if (InventoryItemHasEffect(Item, "Lock", true) && DialogCanUnlock(Item) && InventoryAllow(C, Item.Asset.Prerequisite) && !InventoryGroupIsBlocked(C)) DialogMenuButton.push("Unlock");
|
||||
if (InventoryItemHasEffect(Item, "Lock", true) && DialogCanUnlock(Item) && InventoryAllow(C, Item.Asset.Prerequisite) && !InventoryGroupIsBlocked(C) && (Player.CanInteract() || ((C.ID == 0) && InventoryItemHasEffect(Item, "Block", true)))) DialogMenuButton.push("Unlock");
|
||||
if (InventoryItemHasEffect(Item, "Lock", true) && !DialogCanUnlock(Item) && (C.ID == 0) && InventoryAllow(C, Item.Asset.Prerequisite) && !InventoryGroupIsBlocked(C)) DialogMenuButton.push("Struggle");
|
||||
if (InventoryItemHasEffect(Item, "Lock", true) && (Item.Property != null) && (Item.Property.LockedBy != null) && (Item.Property.LockedBy != "")) DialogMenuButton.push("InspectLock");
|
||||
if (InventoryItemHasEffect(Item, "Lock", true) && !Player.IsBlind() && (Item.Property != null) && (Item.Property.LockedBy != null) && (Item.Property.LockedBy != "")) DialogMenuButton.push("InspectLock");
|
||||
if ((Item != null) && Item.Asset.AllowLock && !InventoryItemHasEffect(Item, "Lock", true) && Player.CanInteract() && InventoryAllow(C, Item.Asset.Prerequisite) && !InventoryGroupIsBlocked(C)) DialogMenuButton.push("Lock");
|
||||
if ((Item != null) && !InventoryItemHasEffect(Item, "Lock", true) && Player.CanInteract() && InventoryAllow(C, Item.Asset.Prerequisite) && !InventoryGroupIsBlocked(C)) DialogMenuButton.push("Remove");
|
||||
if ((Item != null) && !InventoryItemHasEffect(Item, "Lock", true) && !Player.CanInteract() && (C.ID == 0) && InventoryAllow(C, Item.Asset.Prerequisite) && !InventoryGroupIsBlocked(C)) DialogMenuButton.push("Struggle");
|
||||
|
|
|
@ -402,17 +402,14 @@ function DrawEmptyRect(Left, Top, Width, Height, Color) {
|
|||
MainCanvas.lineWidth = '3';
|
||||
MainCanvas.strokeStyle = Color;
|
||||
MainCanvas.stroke();
|
||||
MainCanvas.closePath();
|
||||
}
|
||||
|
||||
// Draw a basic rectangle
|
||||
function DrawRect(Left, Top, Width, Height, Color) {
|
||||
MainCanvas.beginPath();
|
||||
MainCanvas.rect(Left, Top, Width, Height);
|
||||
MainCanvas.fillStyle = Color;
|
||||
MainCanvas.fillRect(Left, Top, Width, Height);
|
||||
MainCanvas.fill();
|
||||
MainCanvas.closePath();
|
||||
}
|
||||
|
||||
// Draw a basic circle
|
||||
|
|
|
@ -101,15 +101,15 @@ function ElementPositionFix(ElementID, Font, X, Y, W, H) {
|
|||
if (DrawScreenWidth <= DrawScreenHeight * 2) {
|
||||
Font = Font * DrawScreenWidth / 2000;
|
||||
Left = X * DrawScreenWidth / 2000;
|
||||
Width = W * DrawScreenWidth / 2000 - 13;
|
||||
Width = W * DrawScreenWidth / 2000;
|
||||
Top = (Y * DrawScreenWidth / 2000) + ((DrawScreenHeight * 2 - DrawScreenWidth) / 4);
|
||||
Height = H * DrawScreenWidth / 2000 - 8;
|
||||
Height = H * DrawScreenWidth / 2000;
|
||||
} else {
|
||||
Font = Font * DrawScreenHeight / 1000;
|
||||
Left = (X * DrawScreenHeight / 1000) + (DrawScreenWidth - DrawScreenHeight * 2) / 2;
|
||||
Width = W * DrawScreenHeight / 1000 - 13;
|
||||
Width = W * DrawScreenHeight / 1000;
|
||||
Top = Y * DrawScreenHeight / 1000;
|
||||
Height = H * DrawScreenHeight / 1000 - 8;
|
||||
Height = H * DrawScreenHeight / 1000;
|
||||
}
|
||||
|
||||
// Sets the element style
|
||||
|
|
|
@ -18,6 +18,7 @@ function ServerInit() {
|
|||
ServerSocket.on("ChatRoomMessage", function (data) { ChatRoomMessage(data); } );
|
||||
ServerSocket.on("ChatRoomAllowItem", function (data) { ChatRoomAllowItem(data); } );
|
||||
ServerSocket.on("PasswordResetResponse", function (data) { PasswordResetResponse(data); } );
|
||||
ServerSocket.on("AccountQueryResult", function (data) { ServerAccountQueryResult(data); } );
|
||||
}
|
||||
|
||||
// When the server sends some information to the client, we keep it in variables
|
||||
|
@ -183,4 +184,11 @@ function ServerPrivateCharacterSync() {
|
|||
}
|
||||
ServerSend("AccountUpdate", D);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
// Parse the query result and sends it to the right screen
|
||||
function ServerAccountQueryResult(data) {
|
||||
if ((data != null) && (typeof data === "object") && !Array.isArray(data) && (data.Query != null) && (typeof data.Query === "string") && (data.Result != null)) {
|
||||
if (data.Query == "OnlineFriends") FriendListLoadFriendList(data.Result);
|
||||
}
|
||||
}
|
|
@ -43,6 +43,7 @@
|
|||
<script src="Screens/Character/Wardrobe/Wardrobe.js"></script>
|
||||
<script src="Screens/Character/Cheat/Cheat.js"></script>
|
||||
<script src="Screens/Character/PasswordReset/PasswordReset.js"></script>
|
||||
<script src="Screens/Character/FriendList/FriendList.js"></script>
|
||||
<script src="Screens/Room/MainHall/MainHall.js"></script>
|
||||
<script src="Screens/Room/Shop/Shop.js"></script>
|
||||
<script src="Screens/Room/Introduction/Introduction.js"></script>
|
||||
|
@ -89,8 +90,8 @@
|
|||
|
||||
/*
|
||||
TO DO:
|
||||
Multi-player friend lookup
|
||||
Multi-player ownership
|
||||
Patreon Import
|
||||
*/
|
||||
|
||||
// When the code is loaded, we start the game engine
|
||||
|
|
Loading…
Add table
Reference in a new issue