1.8.4
This commit is contained in:
parent
b5341cfa39
commit
7a18bb6915
|
|
@ -13,6 +13,10 @@ LArmColor=BrickColor.DarkGray();
|
|||
LLegColor=BrickColor.DarkGray();
|
||||
RArmColor=BrickColor.DarkGray();
|
||||
RLegColor=BrickColor.DarkGray();
|
||||
--localized hats.
|
||||
Hat1 = "rbxasset://charcustom/hats/fedora.rbxm"
|
||||
Hat2 = "rbxasset://charcustom/hats/fedora.rbxm"
|
||||
Hat3 = "rbxasset://charcustom/hats/fedora.rbxm"
|
||||
|
||||
function PlayerColorize()
|
||||
PlayerColorPattern = math.random(5);
|
||||
|
|
@ -242,5 +246,196 @@ function CSConnect(UserID,ServerIP,ServerPort,PlayerName,OutfitID,ColorHash,Pant
|
|||
end
|
||||
end
|
||||
|
||||
function GetHatID(Hat1ID,Hat2ID,Hat3ID)
|
||||
if (Hat1ID == 1) then
|
||||
Hat1 = "rbxasset://charcustom/hats/BlueBaseballCap.rbxm"
|
||||
elseif (Hat1ID == 2) then
|
||||
Hat1 = "rbxasset://charcustom/hats/DominoCrown.rbxm"
|
||||
elseif (Hat1ID == 3) then
|
||||
Hat1 = "rbxasset://charcustom/hats/fedora.rbxm"
|
||||
elseif (Hat1ID == 4) then
|
||||
Hat1 = "rbxasset://charcustom/hats/GreenTopHat.rbxm"
|
||||
elseif (Hat1ID == 5) then
|
||||
Hat1 = "rbxasset://charcustom/hats/headphones.rbxm"
|
||||
elseif (Hat1ID == 6) then
|
||||
Hat1 = "rbxasset://charcustom/hats/NoHat.rbxm"
|
||||
elseif (Hat1ID == 7) then
|
||||
Hat1 = "rbxasset://charcustom/hats/PirateHat.rbxm"
|
||||
elseif (Hat1ID == 8) then
|
||||
Hat1 = "rbxasset://charcustom/hats/PoliceCap.rbxm"
|
||||
elseif (Hat1ID == 9) then
|
||||
Hat1 = "rbxasset://charcustom/hats/PurpleTopHat.rbxm"
|
||||
elseif (Hat1ID == 10) then
|
||||
Hat1 = "rbxasset://charcustom/hats/RedBaseballCap.rbxm"
|
||||
elseif (Hat1ID == 11) then
|
||||
Hat1 = "rbxasset://charcustom/hats/RedTopHat.rbxm"
|
||||
elseif (Hat1ID == 12) then
|
||||
Hat1 = "rbxasset://charcustom/hats/shades.rbxm"
|
||||
elseif (Hat1ID == 13) then
|
||||
Hat1 = "rbxasset://charcustom/hats/ShadowNinjaMask.rbxm"
|
||||
elseif (Hat1ID == 14) then
|
||||
Hat1 = "rbxasset://charcustom/hats/sombrero.rbxm"
|
||||
elseif (Hat1ID == 15) then
|
||||
Hat1 = "rbxasset://charcustom/hats/VikingHelm.rbxm"
|
||||
end
|
||||
|
||||
if (Hat2ID == 1) then
|
||||
Hat2 = "rbxasset://charcustom/hats/BlueBaseballCap.rbxm"
|
||||
elseif (Hat2ID == 2) then
|
||||
Hat2 = "rbxasset://charcustom/hats/DominoCrown.rbxm"
|
||||
elseif (Hat2ID == 3) then
|
||||
Hat2 = "rbxasset://charcustom/hats/fedora.rbxm"
|
||||
elseif (Hat2ID == 4) then
|
||||
Hat2 = "rbxasset://charcustom/hats/GreenTopHat.rbxm"
|
||||
elseif (Hat2ID == 5) then
|
||||
Hat2 = "rbxasset://charcustom/hats/headphones.rbxm"
|
||||
elseif (Hat2ID == 6) then
|
||||
Hat2 = "rbxasset://charcustom/hats/NoHat.rbxm"
|
||||
elseif (Hat2ID == 7) then
|
||||
Hat2 = "rbxasset://charcustom/hats/PirateHat.rbxm"
|
||||
elseif (Hat2ID == 8) then
|
||||
Hat2 = "rbxasset://charcustom/hats/PoliceCap.rbxm"
|
||||
elseif (Hat2ID == 9) then
|
||||
Hat2 = "rbxasset://charcustom/hats/PurpleTopHat.rbxm"
|
||||
elseif (Hat2ID == 10) then
|
||||
Hat2 = "rbxasset://charcustom/hats/RedBaseballCap.rbxm"
|
||||
elseif (Hat2ID == 11) then
|
||||
Hat2 = "rbxasset://charcustom/hats/RedTopHat.rbxm"
|
||||
elseif (Hat2ID == 12) then
|
||||
Hat2 = "rbxasset://charcustom/hats/shades.rbxm"
|
||||
elseif (Hat2ID == 13) then
|
||||
Hat2 = "rbxasset://charcustom/hats/ShadowNinjaMask.rbxm"
|
||||
elseif (Hat2ID == 14) then
|
||||
Hat2 = "rbxasset://charcustom/hats/sombrero.rbxm"
|
||||
elseif (Hat2ID == 15) then
|
||||
Hat2 = "rbxasset://charcustom/hats/VikingHelm.rbxm"
|
||||
end
|
||||
|
||||
if (Hat3ID == 1) then
|
||||
Hat3 = "rbxasset://charcustom/hats/BlueBaseballCap.rbxm"
|
||||
elseif (Hat3ID == 2) then
|
||||
Hat3 = "rbxasset://charcustom/hats/DominoCrown.rbxm"
|
||||
elseif (Hat3ID == 3) then
|
||||
Hat3 = "rbxasset://charcustom/hats/fedora.rbxm"
|
||||
elseif (Hat3ID == 4) then
|
||||
Hat3 = "rbxasset://charcustom/hats/GreenTopHat.rbxm"
|
||||
elseif (Hat3ID == 5) then
|
||||
Hat3 = "rbxasset://charcustom/hats/headphones.rbxm"
|
||||
elseif (Hat3ID == 6) then
|
||||
Hat3 = "rbxasset://charcustom/hats/NoHat.rbxm"
|
||||
elseif (Hat3ID == 7) then
|
||||
Hat3 = "rbxasset://charcustom/hats/PirateHat.rbxm"
|
||||
elseif (Hat3ID == 8) then
|
||||
Hat3 = "rbxasset://charcustom/hats/PoliceCap.rbxm"
|
||||
elseif (Hat3ID == 9) then
|
||||
Hat3 = "rbxasset://charcustom/hats/PurpleTopHat.rbxm"
|
||||
elseif (Hat3ID == 10) then
|
||||
Hat3 = "rbxasset://charcustom/hats/RedBaseballCap.rbxm"
|
||||
elseif (Hat3ID == 11) then
|
||||
Hat3 = "rbxasset://charcustom/hats/RedTopHat.rbxm"
|
||||
elseif (Hat3ID == 12) then
|
||||
Hat3 = "rbxasset://charcustom/hats/shades.rbxm"
|
||||
elseif (Hat3ID == 13) then
|
||||
Hat3 = "rbxasset://charcustom/hats/ShadowNinjaMask.rbxm"
|
||||
elseif (Hat3ID == 14) then
|
||||
Hat3 = "rbxasset://charcustom/hats/sombrero.rbxm"
|
||||
elseif (Hat3ID == 15) then
|
||||
Hat3 = "rbxasset://charcustom/hats/VikingHelm.rbxm"
|
||||
end
|
||||
end
|
||||
|
||||
--same function but with our new localized customization system!
|
||||
function CSConnect2(UserID,ServerIP,ServerPort,PlayerName,OutfitID,Hat1ID,Hat2ID,Hat3ID,Ticket)
|
||||
pcall(function() game:SetPlaceID(-1, false) end);
|
||||
pcall(function() game:GetService("Players"):SetChatStyle(Enum.ChatStyle.ClassicAndBubble) end);
|
||||
|
||||
pcall(function()
|
||||
game:GetService("GuiService").Changed:connect(function()
|
||||
pcall(function() game:GetService("GuiService").ShowLegacyPlayerList=true; end);
|
||||
pcall(function() game.CoreGui.RobloxGui.PlayerListScript:Remove(); end);
|
||||
pcall(function() game.CoreGui.RobloxGui.PlayerListTopRightFrame:Remove(); end);
|
||||
pcall(function() game.CoreGui.RobloxGui.BigPlayerListWindowImposter:Remove(); end);
|
||||
pcall(function() game.CoreGui.RobloxGui.BigPlayerlist:Remove(); end);
|
||||
end);
|
||||
end)
|
||||
|
||||
local suc, err = pcall(function()
|
||||
client = game:GetService("NetworkClient")
|
||||
player = game:GetService("Players"):CreateLocalPlayer(UserID)
|
||||
player:SetSuperSafeChat(false)
|
||||
pcall(function() player:SetUnder13(false) end);
|
||||
pcall(function() player:SetMembershipType(Enum.MembershipType.BuildersClub) end);
|
||||
pcall(function() player:SetAccountAge(365) end);
|
||||
if (OutfitID and OutfitID ~= 0) then
|
||||
player.CharacterAppearance="http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..OutfitID;
|
||||
elseif (Hat1ID and Hat1ID ~= 0) then
|
||||
GetHatID(Hat1ID,Hat2ID,Hat3ID)
|
||||
local charapp = "rbxasset://charcustom/CharacterColors.rbxm;"..Hat1..";"..Hat2..";"..Hat3
|
||||
player.CharacterAppearance = charapp
|
||||
else
|
||||
player.CharacterAppearance=0;
|
||||
end
|
||||
pcall(function() player.Name=PlayerName or ""; end);
|
||||
game:GetService("Visit")
|
||||
end)
|
||||
|
||||
local function dieerror(errmsg)
|
||||
game:SetMessage(errmsg)
|
||||
wait(math.huge)
|
||||
end
|
||||
|
||||
if not suc then
|
||||
dieerror(err)
|
||||
end
|
||||
|
||||
local function disconnect(peer,lostconnection)
|
||||
game:SetMessage("You have lost connection to the game")
|
||||
end
|
||||
|
||||
local function connected(url, replicator)
|
||||
replicator.Disconnection:connect(disconnect)
|
||||
local marker = nil
|
||||
local suc, err = pcall(function()
|
||||
game:SetMessageBrickCount()
|
||||
marker = replicator:SendMarker()
|
||||
end)
|
||||
if not suc then
|
||||
dieerror(err)
|
||||
end
|
||||
marker.Received:connect(function()
|
||||
local suc, err = pcall(function()
|
||||
game:ClearMessage()
|
||||
end)
|
||||
if not suc then
|
||||
dieerror(err)
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
local function rejected()
|
||||
dieerror("Failed to connect to the Game. (Connection rejected)")
|
||||
end
|
||||
|
||||
local function failed(peer, errcode, why)
|
||||
dieerror("Failed to connect to the Game. (ID="..errcode.." ["..why.."])")
|
||||
end
|
||||
|
||||
local suc, err = pcall(function()
|
||||
game:SetMessage("Connecting to server...");
|
||||
client.ConnectionAccepted:connect(connected)
|
||||
client.ConnectionRejected:connect(rejected)
|
||||
client.ConnectionFailed:connect(failed)
|
||||
client:Connect(ServerIP,ServerPort, 0, 20)
|
||||
end)
|
||||
|
||||
if not suc then
|
||||
local x = Instance.new("Message")
|
||||
x.Text = err
|
||||
x.Parent = workspace
|
||||
wait(math.huge)
|
||||
end
|
||||
end
|
||||
|
||||
_G.CSServer=CSServer;
|
||||
_G.CSConnect=CSConnect;
|
||||
_G.CSConnect2=CSConnect2;
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ function CSServer(Port,BodyColors)
|
|||
NetworkServer.IncommingConnection:connect(IncommingConnection);
|
||||
end
|
||||
|
||||
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,OutfitID,ColorHash,PantsID,ShirtID,TShirtID,Hat1ID,Hat2ID,Hat3ID,Ticket)
|
||||
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,OutfitID,ColorHash,PantsID,ShirtID,TShirtID,Hat1ID,Hat2ID,Hat3ID,Hat1Version,Hat2Version,Hat3Version,Ticket)
|
||||
pcall(function() game:SetPlaceID(-1, false) end);
|
||||
pcall(function() game:GetService("Players"):SetChatStyle(Enum.ChatStyle.ClassicAndBubble) end);
|
||||
|
||||
|
|
@ -260,5 +260,214 @@ function CSConnect(UserID,ServerIP,ServerPort,PlayerName,OutfitID,ColorHash,Pant
|
|||
pcall(function() Visit:SetUploadUrl(""); end);
|
||||
end
|
||||
|
||||
function GetHatID(Hat1ID,Hat2ID,Hat3ID)
|
||||
if (Hat1ID == 1) then
|
||||
Hat1 = "rbxasset://charcustom/hats/BlueBaseballCap.rbxm"
|
||||
elseif (Hat1ID == 2) then
|
||||
Hat1 = "rbxasset://charcustom/hats/DominoCrown.rbxm"
|
||||
elseif (Hat1ID == 3) then
|
||||
Hat1 = "rbxasset://charcustom/hats/fedora.rbxm"
|
||||
elseif (Hat1ID == 4) then
|
||||
Hat1 = "rbxasset://charcustom/hats/GreenTopHat.rbxm"
|
||||
elseif (Hat1ID == 5) then
|
||||
Hat1 = "rbxasset://charcustom/hats/headphones.rbxm"
|
||||
elseif (Hat1ID == 6) then
|
||||
Hat1 = "rbxasset://charcustom/hats/NoHat.rbxm"
|
||||
elseif (Hat1ID == 7) then
|
||||
Hat1 = "rbxasset://charcustom/hats/PirateHat.rbxm"
|
||||
elseif (Hat1ID == 8) then
|
||||
Hat1 = "rbxasset://charcustom/hats/PoliceCap.rbxm"
|
||||
elseif (Hat1ID == 9) then
|
||||
Hat1 = "rbxasset://charcustom/hats/PurpleTopHat.rbxm"
|
||||
elseif (Hat1ID == 10) then
|
||||
Hat1 = "rbxasset://charcustom/hats/RedBaseballCap.rbxm"
|
||||
elseif (Hat1ID == 11) then
|
||||
Hat1 = "rbxasset://charcustom/hats/RedTopHat.rbxm"
|
||||
elseif (Hat1ID == 12) then
|
||||
Hat1 = "rbxasset://charcustom/hats/shades.rbxm"
|
||||
elseif (Hat1ID == 13) then
|
||||
Hat1 = "rbxasset://charcustom/hats/ShadowNinjaMask.rbxm"
|
||||
elseif (Hat1ID == 14) then
|
||||
Hat1 = "rbxasset://charcustom/hats/sombrero.rbxm"
|
||||
elseif (Hat1ID == 15) then
|
||||
Hat1 = "rbxasset://charcustom/hats/VikingHelm.rbxm"
|
||||
end
|
||||
|
||||
if (Hat2ID == 1) then
|
||||
Hat2 = "rbxasset://charcustom/hats/BlueBaseballCap.rbxm"
|
||||
elseif (Hat2ID == 2) then
|
||||
Hat2 = "rbxasset://charcustom/hats/DominoCrown.rbxm"
|
||||
elseif (Hat2ID == 3) then
|
||||
Hat2 = "rbxasset://charcustom/hats/fedora.rbxm"
|
||||
elseif (Hat2ID == 4) then
|
||||
Hat2 = "rbxasset://charcustom/hats/GreenTopHat.rbxm"
|
||||
elseif (Hat2ID == 5) then
|
||||
Hat2 = "rbxasset://charcustom/hats/headphones.rbxm"
|
||||
elseif (Hat2ID == 6) then
|
||||
Hat2 = "rbxasset://charcustom/hats/NoHat.rbxm"
|
||||
elseif (Hat2ID == 7) then
|
||||
Hat2 = "rbxasset://charcustom/hats/PirateHat.rbxm"
|
||||
elseif (Hat2ID == 8) then
|
||||
Hat2 = "rbxasset://charcustom/hats/PoliceCap.rbxm"
|
||||
elseif (Hat2ID == 9) then
|
||||
Hat2 = "rbxasset://charcustom/hats/PurpleTopHat.rbxm"
|
||||
elseif (Hat2ID == 10) then
|
||||
Hat2 = "rbxasset://charcustom/hats/RedBaseballCap.rbxm"
|
||||
elseif (Hat2ID == 11) then
|
||||
Hat2 = "rbxasset://charcustom/hats/RedTopHat.rbxm"
|
||||
elseif (Hat2ID == 12) then
|
||||
Hat2 = "rbxasset://charcustom/hats/shades.rbxm"
|
||||
elseif (Hat2ID == 13) then
|
||||
Hat2 = "rbxasset://charcustom/hats/ShadowNinjaMask.rbxm"
|
||||
elseif (Hat2ID == 14) then
|
||||
Hat2 = "rbxasset://charcustom/hats/sombrero.rbxm"
|
||||
elseif (Hat2ID == 15) then
|
||||
Hat2 = "rbxasset://charcustom/hats/VikingHelm.rbxm"
|
||||
end
|
||||
|
||||
if (Hat3ID == 1) then
|
||||
Hat3 = "rbxasset://charcustom/hats/BlueBaseballCap.rbxm"
|
||||
elseif (Hat3ID == 2) then
|
||||
Hat3 = "rbxasset://charcustom/hats/DominoCrown.rbxm"
|
||||
elseif (Hat3ID == 3) then
|
||||
Hat3 = "rbxasset://charcustom/hats/fedora.rbxm"
|
||||
elseif (Hat3ID == 4) then
|
||||
Hat3 = "rbxasset://charcustom/hats/GreenTopHat.rbxm"
|
||||
elseif (Hat3ID == 5) then
|
||||
Hat3 = "rbxasset://charcustom/hats/headphones.rbxm"
|
||||
elseif (Hat3ID == 6) then
|
||||
Hat3 = "rbxasset://charcustom/hats/NoHat.rbxm"
|
||||
elseif (Hat3ID == 7) then
|
||||
Hat3 = "rbxasset://charcustom/hats/PirateHat.rbxm"
|
||||
elseif (Hat3ID == 8) then
|
||||
Hat3 = "rbxasset://charcustom/hats/PoliceCap.rbxm"
|
||||
elseif (Hat3ID == 9) then
|
||||
Hat3 = "rbxasset://charcustom/hats/PurpleTopHat.rbxm"
|
||||
elseif (Hat3ID == 10) then
|
||||
Hat3 = "rbxasset://charcustom/hats/RedBaseballCap.rbxm"
|
||||
elseif (Hat3ID == 11) then
|
||||
Hat3 = "rbxasset://charcustom/hats/RedTopHat.rbxm"
|
||||
elseif (Hat3ID == 12) then
|
||||
Hat3 = "rbxasset://charcustom/hats/shades.rbxm"
|
||||
elseif (Hat3ID == 13) then
|
||||
Hat3 = "rbxasset://charcustom/hats/ShadowNinjaMask.rbxm"
|
||||
elseif (Hat3ID == 14) then
|
||||
Hat3 = "rbxasset://charcustom/hats/sombrero.rbxm"
|
||||
elseif (Hat3ID == 15) then
|
||||
Hat3 = "rbxasset://charcustom/hats/VikingHelm.rbxm"
|
||||
end
|
||||
end
|
||||
|
||||
--same function but with our new localized customization system!
|
||||
function CSConnect2(UserID,ServerIP,ServerPort,PlayerName,OutfitID,Hat1ID,Hat2ID,Hat3ID,Ticket)
|
||||
pcall(function() game:SetPlaceID(-1, false) end);
|
||||
pcall(function() game:GetService("Players"):SetChatStyle(Enum.ChatStyle.ClassicAndBubble) end);
|
||||
|
||||
pcall(function()
|
||||
game:GetService("GuiService").Changed:connect(function()
|
||||
pcall(function() game:GetService("GuiService").ShowLegacyPlayerList=true; end);
|
||||
pcall(function() game.CoreGui.RobloxGui.PlayerListScript:Remove(); end);
|
||||
pcall(function() game.CoreGui.RobloxGui.PlayerListTopRightFrame:Remove(); end);
|
||||
pcall(function() game.CoreGui.RobloxGui.BigPlayerListWindowImposter:Remove(); end);
|
||||
pcall(function() game.CoreGui.RobloxGui.BigPlayerlist:Remove(); end);
|
||||
end);
|
||||
end)
|
||||
game:GetService("RunService"):Run();
|
||||
assert((ServerIP~=nil and ServerPort~=nil),"CSConnect Error: ServerIP and ServerPort must be defined.");
|
||||
local function SetMessage(Message) game:SetMessage(Message); end
|
||||
local Visit,NetworkClient,PlayerSuccess,Player,ConnectionFailedHook=game:GetService("Visit"),game:GetService("NetworkClient");
|
||||
|
||||
local function GetClassCount(Class,Parent)
|
||||
local Objects=Parent:GetChildren();
|
||||
local Number=0;
|
||||
for Index,Object in pairs(Objects) do
|
||||
if (Object.className==Class) then
|
||||
Number=Number+1;
|
||||
end
|
||||
Number=Number+GetClassCount(Class,Object);
|
||||
end
|
||||
return Number;
|
||||
end
|
||||
|
||||
local function RequestCharacter(Replicator)
|
||||
local Connection;
|
||||
Connection=Player.Changed:connect(function(Property)
|
||||
if (Property=="Character") then
|
||||
game:ClearMessage();
|
||||
end
|
||||
end)
|
||||
SetMessage("Requesting character...");
|
||||
Replicator:RequestCharacter();
|
||||
SetMessage("Waiting for character...");
|
||||
end
|
||||
|
||||
local function Disconnection(Peer,LostConnection)
|
||||
SetMessage("You have lost connection to the game");
|
||||
end
|
||||
|
||||
local function ConnectionAccepted(Peer,Replicator)
|
||||
Replicator.Disconnection:connect(Disconnection);
|
||||
local RequestingMarker=true;
|
||||
game:SetMessageBrickCount();
|
||||
local Marker=Replicator:SendMarker();
|
||||
Marker.Received:connect(function()
|
||||
RequestingMarker=false;
|
||||
RequestCharacter(Replicator);
|
||||
end)
|
||||
while RequestingMarker do
|
||||
Workspace:ZoomToExtents();
|
||||
wait(0.5);
|
||||
end
|
||||
end
|
||||
|
||||
local function ConnectionFailed(Peer, Code, why)
|
||||
SetMessage("Failed to connect to the Game. (ID="..Code.." ["..why.."])");
|
||||
end
|
||||
|
||||
pcall(function() settings().Diagnostics:LegacyScriptMode(); end);
|
||||
pcall(function() game:SetRemoteBuildMode(true); end);
|
||||
SetMessage("Connecting to server...");
|
||||
NetworkClient.ConnectionAccepted:connect(ConnectionAccepted);
|
||||
ConnectionFailedHook=NetworkClient.ConnectionFailed:connect(ConnectionFailed);
|
||||
NetworkClient.ConnectionRejected:connect(function()
|
||||
pcall(function() ConnectionFailedHook:disconnect(); end);
|
||||
SetMessage("Failed to connect to the Game. (Connection rejected)");
|
||||
end)
|
||||
|
||||
pcall(function() NetworkClient.Ticket=Ticket or ""; end) -- 2008 client has no ticket :O
|
||||
PlayerSuccess,Player=pcall(function() return NetworkClient:PlayerConnect(UserID,ServerIP,ServerPort) end);
|
||||
|
||||
if (not PlayerSuccess) then
|
||||
SetMessage("Failed to connect to the Game. (Invalid IP Address)");
|
||||
NetworkClient:Disconnect();
|
||||
end
|
||||
|
||||
if (not PlayerSuccess) then
|
||||
local Error,Message=pcall(function()
|
||||
Player=game:GetService("Players"):CreateLocalPlayer(UserID);
|
||||
NetworkClient:Connect(ServerIP,ServerPort);
|
||||
end);
|
||||
if (not Error) then
|
||||
SetMessage("Failed to connect to the Game.");
|
||||
end
|
||||
end
|
||||
pcall(function() Player:SetUnder13(false) end);
|
||||
pcall(function() Player:SetMembershipType(Enum.MembershipType.BuildersClub) end);
|
||||
pcall(function() Player:SetAccountAge(365) end);
|
||||
Player:SetSuperSafeChat(false);
|
||||
if (OutfitID and OutfitID ~= 0) then
|
||||
Player.CharacterAppearance="http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..OutfitID;
|
||||
elseif (Hat1ID and Hat1ID ~= 0) then
|
||||
GetHatID(Hat1ID,Hat2ID,Hat3ID)
|
||||
local charapp = "rbxasset://charcustom/CharacterColors.rbxm;"..Hat1..";"..Hat2..";"..Hat3
|
||||
player.CharacterAppearance = charapp
|
||||
else
|
||||
Player.CharacterAppearance=0;
|
||||
end
|
||||
pcall(function() Player.Name=PlayerName or ""; end);
|
||||
pcall(function() Visit:SetUploadUrl(""); end);
|
||||
end
|
||||
|
||||
_G.CSServer=CSServer;
|
||||
_G.CSConnect=CSConnect;
|
||||
_G.CSConnect2=CSConnect2;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,584 @@
|
|||
/*
|
||||
* Created by SharpDevelop.
|
||||
* User: BITL
|
||||
* Date: 2/25/2017
|
||||
* Time: 1:02 PM
|
||||
*
|
||||
* To change this template use Tools | Options | Coding | Edit Standard Headers.
|
||||
*/
|
||||
namespace RBXLegacyLauncher
|
||||
{
|
||||
partial class CharacterColors
|
||||
{
|
||||
/// <summary>
|
||||
/// Designer variable used to keep track of non-visual components.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Disposes resources used by the form.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing) {
|
||||
if (components != null) {
|
||||
components.Dispose();
|
||||
}
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is required for Windows Forms designer support.
|
||||
/// Do not change the method contents inside the source code editor. The Forms designer might
|
||||
/// not be able to load this method if it was changed manually.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CharacterColors));
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.button2 = new System.Windows.Forms.Button();
|
||||
this.button3 = new System.Windows.Forms.Button();
|
||||
this.button4 = new System.Windows.Forms.Button();
|
||||
this.button5 = new System.Windows.Forms.Button();
|
||||
this.button6 = new System.Windows.Forms.Button();
|
||||
this.button7 = new System.Windows.Forms.Button();
|
||||
this.button8 = new System.Windows.Forms.Button();
|
||||
this.button9 = new System.Windows.Forms.Button();
|
||||
this.button10 = new System.Windows.Forms.Button();
|
||||
this.button11 = new System.Windows.Forms.Button();
|
||||
this.button12 = new System.Windows.Forms.Button();
|
||||
this.button13 = new System.Windows.Forms.Button();
|
||||
this.button14 = new System.Windows.Forms.Button();
|
||||
this.button15 = new System.Windows.Forms.Button();
|
||||
this.button16 = new System.Windows.Forms.Button();
|
||||
this.button17 = new System.Windows.Forms.Button();
|
||||
this.button18 = new System.Windows.Forms.Button();
|
||||
this.button19 = new System.Windows.Forms.Button();
|
||||
this.button20 = new System.Windows.Forms.Button();
|
||||
this.button21 = new System.Windows.Forms.Button();
|
||||
this.button22 = new System.Windows.Forms.Button();
|
||||
this.button23 = new System.Windows.Forms.Button();
|
||||
this.button24 = new System.Windows.Forms.Button();
|
||||
this.button25 = new System.Windows.Forms.Button();
|
||||
this.button26 = new System.Windows.Forms.Button();
|
||||
this.button27 = new System.Windows.Forms.Button();
|
||||
this.button28 = new System.Windows.Forms.Button();
|
||||
this.button29 = new System.Windows.Forms.Button();
|
||||
this.button30 = new System.Windows.Forms.Button();
|
||||
this.button31 = new System.Windows.Forms.Button();
|
||||
this.button32 = new System.Windows.Forms.Button();
|
||||
this.button33 = new System.Windows.Forms.Button();
|
||||
this.button34 = new System.Windows.Forms.Button();
|
||||
this.button35 = new System.Windows.Forms.Button();
|
||||
this.button36 = new System.Windows.Forms.Button();
|
||||
this.button37 = new System.Windows.Forms.Button();
|
||||
this.button38 = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.button39 = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(245)))), ((int)(((byte)(205)))), ((int)(((byte)(47)))));
|
||||
this.button1.Location = new System.Drawing.Point(59, 12);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(47, 46);
|
||||
this.button1.TabIndex = 0;
|
||||
this.button1.UseVisualStyleBackColor = false;
|
||||
this.button1.Click += new System.EventHandler(this.Button1Click);
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(13)))), ((int)(((byte)(105)))), ((int)(((byte)(172)))));
|
||||
this.button2.Location = new System.Drawing.Point(49, 62);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(68, 72);
|
||||
this.button2.TabIndex = 1;
|
||||
this.button2.UseVisualStyleBackColor = false;
|
||||
this.button2.Click += new System.EventHandler(this.Button2Click);
|
||||
//
|
||||
// button3
|
||||
//
|
||||
this.button3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(245)))), ((int)(((byte)(205)))), ((int)(((byte)(47)))));
|
||||
this.button3.Location = new System.Drawing.Point(12, 62);
|
||||
this.button3.Name = "button3";
|
||||
this.button3.Size = new System.Drawing.Size(31, 72);
|
||||
this.button3.TabIndex = 2;
|
||||
this.button3.UseVisualStyleBackColor = false;
|
||||
this.button3.Click += new System.EventHandler(this.Button3Click);
|
||||
//
|
||||
// button4
|
||||
//
|
||||
this.button4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(245)))), ((int)(((byte)(205)))), ((int)(((byte)(47)))));
|
||||
this.button4.Location = new System.Drawing.Point(123, 62);
|
||||
this.button4.Name = "button4";
|
||||
this.button4.Size = new System.Drawing.Size(31, 72);
|
||||
this.button4.TabIndex = 3;
|
||||
this.button4.UseVisualStyleBackColor = false;
|
||||
this.button4.Click += new System.EventHandler(this.Button4Click);
|
||||
//
|
||||
// button5
|
||||
//
|
||||
this.button5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(189)))), ((int)(((byte)(71)))));
|
||||
this.button5.Location = new System.Drawing.Point(49, 140);
|
||||
this.button5.Name = "button5";
|
||||
this.button5.Size = new System.Drawing.Size(31, 70);
|
||||
this.button5.TabIndex = 4;
|
||||
this.button5.UseVisualStyleBackColor = false;
|
||||
this.button5.Click += new System.EventHandler(this.Button5Click);
|
||||
//
|
||||
// button6
|
||||
//
|
||||
this.button6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(189)))), ((int)(((byte)(71)))));
|
||||
this.button6.Location = new System.Drawing.Point(86, 140);
|
||||
this.button6.Name = "button6";
|
||||
this.button6.Size = new System.Drawing.Size(31, 70);
|
||||
this.button6.TabIndex = 5;
|
||||
this.button6.UseVisualStyleBackColor = false;
|
||||
this.button6.Click += new System.EventHandler(this.Button6Click);
|
||||
//
|
||||
// button7
|
||||
//
|
||||
this.button7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(243)))), ((int)(((byte)(243)))));
|
||||
this.button7.Location = new System.Drawing.Point(170, 13);
|
||||
this.button7.Name = "button7";
|
||||
this.button7.Size = new System.Drawing.Size(29, 26);
|
||||
this.button7.TabIndex = 6;
|
||||
this.button7.UseVisualStyleBackColor = false;
|
||||
this.button7.Click += new System.EventHandler(this.Button7Click);
|
||||
//
|
||||
// button8
|
||||
//
|
||||
this.button8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(228)))), ((int)(((byte)(229)))), ((int)(((byte)(224)))));
|
||||
this.button8.Location = new System.Drawing.Point(205, 13);
|
||||
this.button8.Name = "button8";
|
||||
this.button8.Size = new System.Drawing.Size(28, 26);
|
||||
this.button8.TabIndex = 7;
|
||||
this.button8.UseVisualStyleBackColor = false;
|
||||
this.button8.Click += new System.EventHandler(this.Button8Click);
|
||||
//
|
||||
// button9
|
||||
//
|
||||
this.button9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(163)))), ((int)(((byte)(163)))), ((int)(((byte)(165)))));
|
||||
this.button9.Location = new System.Drawing.Point(239, 13);
|
||||
this.button9.Name = "button9";
|
||||
this.button9.Size = new System.Drawing.Size(28, 26);
|
||||
this.button9.TabIndex = 8;
|
||||
this.button9.UseVisualStyleBackColor = false;
|
||||
this.button9.Click += new System.EventHandler(this.Button9Click);
|
||||
//
|
||||
// button10
|
||||
//
|
||||
this.button10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(99)))), ((int)(((byte)(95)))), ((int)(((byte)(96)))));
|
||||
this.button10.Location = new System.Drawing.Point(273, 13);
|
||||
this.button10.Name = "button10";
|
||||
this.button10.Size = new System.Drawing.Size(28, 26);
|
||||
this.button10.TabIndex = 9;
|
||||
this.button10.UseVisualStyleBackColor = false;
|
||||
this.button10.Click += new System.EventHandler(this.Button10Click);
|
||||
//
|
||||
// button11
|
||||
//
|
||||
this.button11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(234)))), ((int)(((byte)(142)))));
|
||||
this.button11.Location = new System.Drawing.Point(407, 13);
|
||||
this.button11.Name = "button11";
|
||||
this.button11.Size = new System.Drawing.Size(28, 26);
|
||||
this.button11.TabIndex = 13;
|
||||
this.button11.UseVisualStyleBackColor = false;
|
||||
this.button11.Click += new System.EventHandler(this.Button11Click);
|
||||
//
|
||||
// button12
|
||||
//
|
||||
this.button12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(245)))), ((int)(((byte)(205)))), ((int)(((byte)(47)))));
|
||||
this.button12.Location = new System.Drawing.Point(373, 13);
|
||||
this.button12.Name = "button12";
|
||||
this.button12.Size = new System.Drawing.Size(28, 26);
|
||||
this.button12.TabIndex = 12;
|
||||
this.button12.UseVisualStyleBackColor = false;
|
||||
this.button12.Click += new System.EventHandler(this.Button12Click);
|
||||
//
|
||||
// button13
|
||||
//
|
||||
this.button13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(40)))), ((int)(((byte)(27)))));
|
||||
this.button13.Location = new System.Drawing.Point(339, 13);
|
||||
this.button13.Name = "button13";
|
||||
this.button13.Size = new System.Drawing.Size(28, 26);
|
||||
this.button13.TabIndex = 11;
|
||||
this.button13.UseVisualStyleBackColor = false;
|
||||
this.button13.Click += new System.EventHandler(this.Button13Click);
|
||||
//
|
||||
// button14
|
||||
//
|
||||
this.button14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(42)))), ((int)(((byte)(53)))));
|
||||
this.button14.Location = new System.Drawing.Point(304, 13);
|
||||
this.button14.Name = "button14";
|
||||
this.button14.Size = new System.Drawing.Size(29, 26);
|
||||
this.button14.TabIndex = 10;
|
||||
this.button14.UseVisualStyleBackColor = false;
|
||||
this.button14.Click += new System.EventHandler(this.Button14Click);
|
||||
//
|
||||
// button15
|
||||
//
|
||||
this.button15.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(186)))), ((int)(((byte)(219)))));
|
||||
this.button15.Location = new System.Drawing.Point(273, 45);
|
||||
this.button15.Name = "button15";
|
||||
this.button15.Size = new System.Drawing.Size(28, 26);
|
||||
this.button15.TabIndex = 17;
|
||||
this.button15.UseVisualStyleBackColor = false;
|
||||
this.button15.Click += new System.EventHandler(this.Button15Click);
|
||||
//
|
||||
// button16
|
||||
//
|
||||
this.button16.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(111)))), ((int)(((byte)(153)))), ((int)(((byte)(201)))));
|
||||
this.button16.Location = new System.Drawing.Point(239, 45);
|
||||
this.button16.Name = "button16";
|
||||
this.button16.Size = new System.Drawing.Size(28, 26);
|
||||
this.button16.TabIndex = 16;
|
||||
this.button16.UseVisualStyleBackColor = false;
|
||||
this.button16.Click += new System.EventHandler(this.Button16Click);
|
||||
//
|
||||
// button17
|
||||
//
|
||||
this.button17.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(143)))), ((int)(((byte)(155)))));
|
||||
this.button17.Location = new System.Drawing.Point(205, 45);
|
||||
this.button17.Name = "button17";
|
||||
this.button17.Size = new System.Drawing.Size(28, 26);
|
||||
this.button17.TabIndex = 15;
|
||||
this.button17.UseVisualStyleBackColor = false;
|
||||
this.button17.Click += new System.EventHandler(this.Button17Click);
|
||||
//
|
||||
// button18
|
||||
//
|
||||
this.button18.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(13)))), ((int)(((byte)(105)))), ((int)(((byte)(172)))));
|
||||
this.button18.Location = new System.Drawing.Point(170, 45);
|
||||
this.button18.Name = "button18";
|
||||
this.button18.Size = new System.Drawing.Size(29, 26);
|
||||
this.button18.TabIndex = 14;
|
||||
this.button18.UseVisualStyleBackColor = false;
|
||||
this.button18.Click += new System.EventHandler(this.Button18Click);
|
||||
//
|
||||
// button19
|
||||
//
|
||||
this.button19.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(226)))), ((int)(((byte)(155)))), ((int)(((byte)(63)))));
|
||||
this.button19.Location = new System.Drawing.Point(407, 45);
|
||||
this.button19.Name = "button19";
|
||||
this.button19.Size = new System.Drawing.Size(28, 26);
|
||||
this.button19.TabIndex = 21;
|
||||
this.button19.UseVisualStyleBackColor = false;
|
||||
this.button19.Click += new System.EventHandler(this.Button19Click);
|
||||
//
|
||||
// button20
|
||||
//
|
||||
this.button20.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(218)))), ((int)(((byte)(134)))), ((int)(((byte)(64)))));
|
||||
this.button20.Location = new System.Drawing.Point(373, 45);
|
||||
this.button20.Name = "button20";
|
||||
this.button20.Size = new System.Drawing.Size(28, 26);
|
||||
this.button20.TabIndex = 20;
|
||||
this.button20.UseVisualStyleBackColor = false;
|
||||
this.button20.Click += new System.EventHandler(this.Button20Click);
|
||||
//
|
||||
// button21
|
||||
//
|
||||
this.button21.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(116)))), ((int)(((byte)(134)))), ((int)(((byte)(156)))));
|
||||
this.button21.Location = new System.Drawing.Point(339, 45);
|
||||
this.button21.Name = "button21";
|
||||
this.button21.Size = new System.Drawing.Size(28, 26);
|
||||
this.button21.TabIndex = 19;
|
||||
this.button21.UseVisualStyleBackColor = false;
|
||||
this.button21.Click += new System.EventHandler(this.Button21Click);
|
||||
//
|
||||
// button22
|
||||
//
|
||||
this.button22.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(210)))), ((int)(((byte)(228)))));
|
||||
this.button22.Location = new System.Drawing.Point(304, 45);
|
||||
this.button22.Name = "button22";
|
||||
this.button22.Size = new System.Drawing.Size(29, 26);
|
||||
this.button22.TabIndex = 18;
|
||||
this.button22.UseVisualStyleBackColor = false;
|
||||
this.button22.Click += new System.EventHandler(this.Button22Click);
|
||||
//
|
||||
// button23
|
||||
//
|
||||
this.button23.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(189)))), ((int)(((byte)(71)))));
|
||||
this.button23.Location = new System.Drawing.Point(273, 77);
|
||||
this.button23.Name = "button23";
|
||||
this.button23.Size = new System.Drawing.Size(28, 26);
|
||||
this.button23.TabIndex = 25;
|
||||
this.button23.UseVisualStyleBackColor = false;
|
||||
this.button23.Click += new System.EventHandler(this.Button23Click);
|
||||
//
|
||||
// button24
|
||||
//
|
||||
this.button24.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(76)))), ((int)(((byte)(150)))), ((int)(((byte)(73)))));
|
||||
this.button24.Location = new System.Drawing.Point(239, 77);
|
||||
this.button24.Name = "button24";
|
||||
this.button24.Size = new System.Drawing.Size(28, 26);
|
||||
this.button24.TabIndex = 24;
|
||||
this.button24.UseVisualStyleBackColor = false;
|
||||
this.button24.Click += new System.EventHandler(this.Button24Click);
|
||||
//
|
||||
// button25
|
||||
//
|
||||
this.button25.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(39)))), ((int)(((byte)(126)))), ((int)(((byte)(71)))));
|
||||
this.button25.Location = new System.Drawing.Point(205, 77);
|
||||
this.button25.Name = "button25";
|
||||
this.button25.Size = new System.Drawing.Size(28, 26);
|
||||
this.button25.TabIndex = 23;
|
||||
this.button25.UseVisualStyleBackColor = false;
|
||||
this.button25.Click += new System.EventHandler(this.Button25Click);
|
||||
//
|
||||
// button26
|
||||
//
|
||||
this.button26.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(70)))), ((int)(((byte)(43)))));
|
||||
this.button26.Location = new System.Drawing.Point(170, 77);
|
||||
this.button26.Name = "button26";
|
||||
this.button26.Size = new System.Drawing.Size(29, 26);
|
||||
this.button26.TabIndex = 22;
|
||||
this.button26.UseVisualStyleBackColor = false;
|
||||
this.button26.Click += new System.EventHandler(this.Button26Click);
|
||||
//
|
||||
// button27
|
||||
//
|
||||
this.button27.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(105)))), ((int)(((byte)(63)))), ((int)(((byte)(39)))));
|
||||
this.button27.Location = new System.Drawing.Point(407, 77);
|
||||
this.button27.Name = "button27";
|
||||
this.button27.Size = new System.Drawing.Size(28, 26);
|
||||
this.button27.TabIndex = 29;
|
||||
this.button27.UseVisualStyleBackColor = false;
|
||||
this.button27.Click += new System.EventHandler(this.Button27Click);
|
||||
//
|
||||
// button28
|
||||
//
|
||||
this.button28.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(95)))), ((int)(((byte)(55)))));
|
||||
this.button28.Location = new System.Drawing.Point(373, 77);
|
||||
this.button28.Name = "button28";
|
||||
this.button28.Size = new System.Drawing.Size(28, 26);
|
||||
this.button28.TabIndex = 28;
|
||||
this.button28.UseVisualStyleBackColor = false;
|
||||
this.button28.Click += new System.EventHandler(this.Button28Click);
|
||||
//
|
||||
// button29
|
||||
//
|
||||
this.button29.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(120)))), ((int)(((byte)(144)))), ((int)(((byte)(130)))));
|
||||
this.button29.Location = new System.Drawing.Point(339, 77);
|
||||
this.button29.Name = "button29";
|
||||
this.button29.Size = new System.Drawing.Size(28, 26);
|
||||
this.button29.TabIndex = 27;
|
||||
this.button29.UseVisualStyleBackColor = false;
|
||||
this.button29.Click += new System.EventHandler(this.Button29Click);
|
||||
//
|
||||
// button30
|
||||
//
|
||||
this.button30.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(161)))), ((int)(((byte)(196)))), ((int)(((byte)(140)))));
|
||||
this.button30.Location = new System.Drawing.Point(304, 77);
|
||||
this.button30.Name = "button30";
|
||||
this.button30.Size = new System.Drawing.Size(29, 26);
|
||||
this.button30.TabIndex = 26;
|
||||
this.button30.UseVisualStyleBackColor = false;
|
||||
this.button30.Click += new System.EventHandler(this.Button30Click);
|
||||
//
|
||||
// button31
|
||||
//
|
||||
this.button31.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(217)))), ((int)(((byte)(196)))), ((int)(((byte)(153)))));
|
||||
this.button31.Location = new System.Drawing.Point(273, 109);
|
||||
this.button31.Name = "button31";
|
||||
this.button31.Size = new System.Drawing.Size(28, 26);
|
||||
this.button31.TabIndex = 33;
|
||||
this.button31.UseVisualStyleBackColor = false;
|
||||
this.button31.Click += new System.EventHandler(this.Button31Click);
|
||||
//
|
||||
// button32
|
||||
//
|
||||
this.button32.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(218)))), ((int)(((byte)(135)))), ((int)(((byte)(121)))));
|
||||
this.button32.Location = new System.Drawing.Point(239, 109);
|
||||
this.button32.Name = "button32";
|
||||
this.button32.Size = new System.Drawing.Size(28, 26);
|
||||
this.button32.TabIndex = 32;
|
||||
this.button32.UseVisualStyleBackColor = false;
|
||||
this.button32.Click += new System.EventHandler(this.Button32Click);
|
||||
//
|
||||
// button33
|
||||
//
|
||||
this.button33.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(186)))), ((int)(((byte)(199)))));
|
||||
this.button33.Location = new System.Drawing.Point(205, 109);
|
||||
this.button33.Name = "button33";
|
||||
this.button33.Size = new System.Drawing.Size(28, 26);
|
||||
this.button33.TabIndex = 31;
|
||||
this.button33.UseVisualStyleBackColor = false;
|
||||
this.button33.Click += new System.EventHandler(this.Button33Click);
|
||||
//
|
||||
// button34
|
||||
//
|
||||
this.button34.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(106)))), ((int)(((byte)(50)))), ((int)(((byte)(123)))));
|
||||
this.button34.Location = new System.Drawing.Point(170, 109);
|
||||
this.button34.Name = "button34";
|
||||
this.button34.Size = new System.Drawing.Size(29, 26);
|
||||
this.button34.TabIndex = 30;
|
||||
this.button34.UseVisualStyleBackColor = false;
|
||||
this.button34.Click += new System.EventHandler(this.Button34Click);
|
||||
//
|
||||
// button35
|
||||
//
|
||||
this.button35.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(185)))), ((int)(((byte)(145)))));
|
||||
this.button35.Location = new System.Drawing.Point(407, 109);
|
||||
this.button35.Name = "button35";
|
||||
this.button35.Size = new System.Drawing.Size(28, 26);
|
||||
this.button35.TabIndex = 37;
|
||||
this.button35.UseVisualStyleBackColor = false;
|
||||
this.button35.Click += new System.EventHandler(this.Button35Click);
|
||||
//
|
||||
// button36
|
||||
//
|
||||
this.button36.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(142)))), ((int)(((byte)(105)))));
|
||||
this.button36.Location = new System.Drawing.Point(373, 109);
|
||||
this.button36.Name = "button36";
|
||||
this.button36.Size = new System.Drawing.Size(28, 26);
|
||||
this.button36.TabIndex = 36;
|
||||
this.button36.UseVisualStyleBackColor = false;
|
||||
this.button36.Click += new System.EventHandler(this.Button36Click);
|
||||
//
|
||||
// button37
|
||||
//
|
||||
this.button37.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(124)))), ((int)(((byte)(92)))), ((int)(((byte)(69)))));
|
||||
this.button37.Location = new System.Drawing.Point(339, 109);
|
||||
this.button37.Name = "button37";
|
||||
this.button37.Size = new System.Drawing.Size(28, 26);
|
||||
this.button37.TabIndex = 35;
|
||||
this.button37.UseVisualStyleBackColor = false;
|
||||
this.button37.Click += new System.EventHandler(this.Button37Click);
|
||||
//
|
||||
// button38
|
||||
//
|
||||
this.button38.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(147)))), ((int)(((byte)(122)))), ((int)(((byte)(118)))));
|
||||
this.button38.Location = new System.Drawing.Point(304, 109);
|
||||
this.button38.Name = "button38";
|
||||
this.button38.Size = new System.Drawing.Size(29, 26);
|
||||
this.button38.TabIndex = 34;
|
||||
this.button38.UseVisualStyleBackColor = false;
|
||||
this.button38.Click += new System.EventHandler(this.Button38Click);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Location = new System.Drawing.Point(170, 140);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(105, 16);
|
||||
this.label1.TabIndex = 38;
|
||||
this.label1.Text = "SELECTED PART:";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.Location = new System.Drawing.Point(267, 140);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(80, 16);
|
||||
this.label2.TabIndex = 39;
|
||||
//
|
||||
// button39
|
||||
//
|
||||
this.button39.Location = new System.Drawing.Point(170, 160);
|
||||
this.button39.Name = "button39";
|
||||
this.button39.Size = new System.Drawing.Size(255, 50);
|
||||
this.button39.TabIndex = 40;
|
||||
this.button39.Text = "Save Colors";
|
||||
this.button39.UseVisualStyleBackColor = true;
|
||||
this.button39.Click += new System.EventHandler(this.Button39Click);
|
||||
//
|
||||
// CharacterColors
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(437, 222);
|
||||
this.Controls.Add(this.button39);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.button35);
|
||||
this.Controls.Add(this.button36);
|
||||
this.Controls.Add(this.button37);
|
||||
this.Controls.Add(this.button38);
|
||||
this.Controls.Add(this.button31);
|
||||
this.Controls.Add(this.button32);
|
||||
this.Controls.Add(this.button33);
|
||||
this.Controls.Add(this.button34);
|
||||
this.Controls.Add(this.button27);
|
||||
this.Controls.Add(this.button28);
|
||||
this.Controls.Add(this.button29);
|
||||
this.Controls.Add(this.button30);
|
||||
this.Controls.Add(this.button23);
|
||||
this.Controls.Add(this.button24);
|
||||
this.Controls.Add(this.button25);
|
||||
this.Controls.Add(this.button26);
|
||||
this.Controls.Add(this.button19);
|
||||
this.Controls.Add(this.button20);
|
||||
this.Controls.Add(this.button21);
|
||||
this.Controls.Add(this.button22);
|
||||
this.Controls.Add(this.button15);
|
||||
this.Controls.Add(this.button16);
|
||||
this.Controls.Add(this.button17);
|
||||
this.Controls.Add(this.button18);
|
||||
this.Controls.Add(this.button11);
|
||||
this.Controls.Add(this.button12);
|
||||
this.Controls.Add(this.button13);
|
||||
this.Controls.Add(this.button14);
|
||||
this.Controls.Add(this.button10);
|
||||
this.Controls.Add(this.button9);
|
||||
this.Controls.Add(this.button8);
|
||||
this.Controls.Add(this.button7);
|
||||
this.Controls.Add(this.button6);
|
||||
this.Controls.Add(this.button5);
|
||||
this.Controls.Add(this.button4);
|
||||
this.Controls.Add(this.button3);
|
||||
this.Controls.Add(this.button2);
|
||||
this.Controls.Add(this.button1);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.Name = "CharacterColors";
|
||||
this.Text = "Character Color Picker";
|
||||
this.Load += new System.EventHandler(this.CharacterColorsLoad);
|
||||
this.ResumeLayout(false);
|
||||
}
|
||||
private System.Windows.Forms.Button button39;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Button button38;
|
||||
private System.Windows.Forms.Button button37;
|
||||
private System.Windows.Forms.Button button36;
|
||||
private System.Windows.Forms.Button button35;
|
||||
private System.Windows.Forms.Button button34;
|
||||
private System.Windows.Forms.Button button33;
|
||||
private System.Windows.Forms.Button button32;
|
||||
private System.Windows.Forms.Button button31;
|
||||
private System.Windows.Forms.Button button30;
|
||||
private System.Windows.Forms.Button button29;
|
||||
private System.Windows.Forms.Button button28;
|
||||
private System.Windows.Forms.Button button27;
|
||||
private System.Windows.Forms.Button button26;
|
||||
private System.Windows.Forms.Button button25;
|
||||
private System.Windows.Forms.Button button24;
|
||||
private System.Windows.Forms.Button button23;
|
||||
private System.Windows.Forms.Button button22;
|
||||
private System.Windows.Forms.Button button21;
|
||||
private System.Windows.Forms.Button button20;
|
||||
private System.Windows.Forms.Button button19;
|
||||
private System.Windows.Forms.Button button18;
|
||||
private System.Windows.Forms.Button button17;
|
||||
private System.Windows.Forms.Button button16;
|
||||
private System.Windows.Forms.Button button15;
|
||||
private System.Windows.Forms.Button button14;
|
||||
private System.Windows.Forms.Button button13;
|
||||
private System.Windows.Forms.Button button12;
|
||||
private System.Windows.Forms.Button button11;
|
||||
private System.Windows.Forms.Button button10;
|
||||
private System.Windows.Forms.Button button9;
|
||||
private System.Windows.Forms.Button button8;
|
||||
private System.Windows.Forms.Button button7;
|
||||
private System.Windows.Forms.Button button6;
|
||||
private System.Windows.Forms.Button button5;
|
||||
private System.Windows.Forms.Button button4;
|
||||
private System.Windows.Forms.Button button3;
|
||||
private System.Windows.Forms.Button button2;
|
||||
private System.Windows.Forms.Button button1;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,413 @@
|
|||
/*
|
||||
* Created by SharpDevelop.
|
||||
* User: BITL
|
||||
* Date: 2/25/2017
|
||||
* Time: 1:02 PM
|
||||
*
|
||||
* To change this template use Tools | Options | Coding | Edit Standard Headers.
|
||||
*/
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using System.Xml;
|
||||
|
||||
namespace RBXLegacyLauncher
|
||||
{
|
||||
/// <summary>
|
||||
/// Description of CharacterColors.
|
||||
/// </summary>
|
||||
public partial class CharacterColors : Form
|
||||
{
|
||||
public static int HeadColor = 0;
|
||||
public static int TorsoColor = 0;
|
||||
public static int LArmColor = 0;
|
||||
public static int RArmColor = 0;
|
||||
public static int LLegColor = 0;
|
||||
public static int RLegColor = 0;
|
||||
public static string SelectedPart = "";
|
||||
|
||||
public CharacterColors()
|
||||
{
|
||||
//
|
||||
// The InitializeComponent() call is required for Windows Forms designer support.
|
||||
//
|
||||
InitializeComponent();
|
||||
|
||||
//
|
||||
// TODO: Add constructor code after the InitializeComponent() call.
|
||||
//
|
||||
}
|
||||
|
||||
void Button1Click(object sender, EventArgs e)
|
||||
{
|
||||
SelectedPart = "Head";
|
||||
label2.Text = SelectedPart;
|
||||
}
|
||||
|
||||
void Button2Click(object sender, EventArgs e)
|
||||
{
|
||||
SelectedPart = "Torso";
|
||||
label2.Text = SelectedPart;
|
||||
}
|
||||
|
||||
void Button3Click(object sender, EventArgs e)
|
||||
{
|
||||
SelectedPart = "Right Arm";
|
||||
label2.Text = SelectedPart;
|
||||
}
|
||||
|
||||
void Button4Click(object sender, EventArgs e)
|
||||
{
|
||||
SelectedPart = "Left Arm";
|
||||
label2.Text = SelectedPart;
|
||||
}
|
||||
|
||||
void Button5Click(object sender, EventArgs e)
|
||||
{
|
||||
SelectedPart = "Right Leg";
|
||||
label2.Text = SelectedPart;
|
||||
}
|
||||
|
||||
void Button6Click(object sender, EventArgs e)
|
||||
{
|
||||
SelectedPart = "Left Leg";
|
||||
label2.Text = SelectedPart;
|
||||
}
|
||||
|
||||
void CharacterColorsLoad(object sender, EventArgs e)
|
||||
{
|
||||
HeadColor = 24;
|
||||
TorsoColor = 23;
|
||||
LArmColor = 24;
|
||||
RArmColor = 24;
|
||||
LLegColor = 119;
|
||||
RLegColor = 119;
|
||||
SelectedPart = "Head";
|
||||
label2.Text = SelectedPart;
|
||||
}
|
||||
|
||||
void ChangeColorOfPart(int ColorID, Color ButtonColor)
|
||||
{
|
||||
if (SelectedPart == "Head")
|
||||
{
|
||||
HeadColor = ColorID;
|
||||
button1.BackColor = ButtonColor;
|
||||
}
|
||||
else if (SelectedPart == "Torso")
|
||||
{
|
||||
TorsoColor = ColorID;
|
||||
button2.BackColor = ButtonColor;
|
||||
}
|
||||
else if (SelectedPart == "Right Arm")
|
||||
{
|
||||
RArmColor = ColorID;
|
||||
button3.BackColor = ButtonColor;
|
||||
}
|
||||
else if (SelectedPart == "Left Arm")
|
||||
{
|
||||
LArmColor = ColorID;
|
||||
button4.BackColor = ButtonColor;
|
||||
}
|
||||
else if (SelectedPart == "Right Leg")
|
||||
{
|
||||
RLegColor = ColorID;
|
||||
button5.BackColor = ButtonColor;
|
||||
}
|
||||
else if (SelectedPart == "Left Leg")
|
||||
{
|
||||
LLegColor = ColorID;
|
||||
button6.BackColor = ButtonColor;
|
||||
}
|
||||
}
|
||||
|
||||
void Button7Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button7.BackColor;
|
||||
int colorID = 1;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button8Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button8.BackColor;
|
||||
int colorID = 208;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button9Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button9.BackColor;
|
||||
int colorID = 194;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button10Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button10.BackColor;
|
||||
int colorID = 199;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button14Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button14.BackColor;
|
||||
int colorID = 26;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button13Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button13.BackColor;
|
||||
int colorID = 21;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button12Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button12.BackColor;
|
||||
int colorID = 24;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button11Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button11.BackColor;
|
||||
int colorID = 226;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button18Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button18.BackColor;
|
||||
int colorID = 23;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button17Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button17.BackColor;
|
||||
int colorID = 107;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button16Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button16.BackColor;
|
||||
int colorID = 102;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button15Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button15.BackColor;
|
||||
int colorID = 11;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button22Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button22.BackColor;
|
||||
int colorID = 45;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button21Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button21.BackColor;
|
||||
int colorID = 135;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button20Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button20.BackColor;
|
||||
int colorID = 106;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button19Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button19.BackColor;
|
||||
int colorID = 105;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button26Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button26.BackColor;
|
||||
int colorID = 141;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button25Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button25.BackColor;
|
||||
int colorID = 28;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button24Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button24.BackColor;
|
||||
int colorID = 37;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button23Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button23.BackColor;
|
||||
int colorID = 119;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button30Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button30.BackColor;
|
||||
int colorID = 29;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button29Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button29.BackColor;
|
||||
int colorID = 151;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button28Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button28.BackColor;
|
||||
int colorID = 38;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button27Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button27.BackColor;
|
||||
int colorID = 192;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button34Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button34.BackColor;
|
||||
int colorID = 104;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button33Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button33.BackColor;
|
||||
int colorID = 9;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button32Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button32.BackColor;
|
||||
int colorID = 101;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button31Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button31.BackColor;
|
||||
int colorID = 5;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button38Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button38.BackColor;
|
||||
int colorID = 153;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button37Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button37.BackColor;
|
||||
int colorID = 217;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button36Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button36.BackColor;
|
||||
int colorID = 18;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button35Click(object sender, EventArgs e)
|
||||
{
|
||||
Color ButtonColor = button35.BackColor;
|
||||
int colorID = 125;
|
||||
ChangeColorOfPart(colorID, ButtonColor);
|
||||
}
|
||||
|
||||
void Button39Click(object sender, EventArgs e)
|
||||
{
|
||||
string filename = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\content\\charcustom\\CharacterColors.rbxm";
|
||||
XmlTextWriter writer = new XmlTextWriter(filename, System.Text.Encoding.UTF8);
|
||||
writer.Formatting = Formatting.Indented;
|
||||
writer.Indentation = 3;
|
||||
writer.WriteStartDocument(true);
|
||||
writer.WriteStartElement("roblox");
|
||||
writer.WriteAttributeString("xmlns:xmime", "http://www.w3.org/2005/05/xmlmime");
|
||||
writer.WriteAttributeString("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
|
||||
writer.WriteAttributeString("xsi:noNamespaceSchemaLocation", "http://www.roblox.com/roblox.xsd");
|
||||
writer.WriteAttributeString("version", "4");
|
||||
writer.WriteStartElement("External");
|
||||
writer.WriteString("null");
|
||||
writer.WriteEndElement();
|
||||
writer.WriteStartElement("External");
|
||||
writer.WriteString("nil");
|
||||
writer.WriteEndElement();
|
||||
WriteColorModel(writer);
|
||||
writer.WriteEndElement();
|
||||
writer.WriteEndDocument();
|
||||
writer.Close();
|
||||
MessageBox.Show("Colors Saved!");
|
||||
}
|
||||
|
||||
void WriteColorModel(XmlTextWriter writer)
|
||||
{
|
||||
writer.WriteStartElement("Item");
|
||||
writer.WriteAttributeString("class", "BodyColors");
|
||||
writer.WriteStartElement("Properties");
|
||||
writer.WriteStartElement("int");
|
||||
writer.WriteAttributeString("name", "HeadColor");
|
||||
writer.WriteString(HeadColor.ToString());
|
||||
writer.WriteEndElement();
|
||||
writer.WriteStartElement("int");
|
||||
writer.WriteAttributeString("name", "LeftArmColor");
|
||||
writer.WriteString(LArmColor.ToString());
|
||||
writer.WriteEndElement();
|
||||
writer.WriteStartElement("int");
|
||||
writer.WriteAttributeString("name", "LeftLegColor");
|
||||
writer.WriteString(LLegColor.ToString());
|
||||
writer.WriteEndElement();
|
||||
writer.WriteStartElement("string");
|
||||
writer.WriteAttributeString("name", "Name");
|
||||
writer.WriteString("Body Colors");
|
||||
writer.WriteEndElement();
|
||||
writer.WriteStartElement("int");
|
||||
writer.WriteAttributeString("name", "RightArmColor");
|
||||
writer.WriteString(RArmColor.ToString());
|
||||
writer.WriteEndElement();
|
||||
writer.WriteStartElement("int");
|
||||
writer.WriteAttributeString("name", "RightLegColor");
|
||||
writer.WriteString(RLegColor.ToString());
|
||||
writer.WriteEndElement();
|
||||
writer.WriteStartElement("int");
|
||||
writer.WriteAttributeString("name", "TorsoColor");
|
||||
writer.WriteString(TorsoColor.ToString());
|
||||
writer.WriteEndElement();
|
||||
writer.WriteStartElement("bool");
|
||||
writer.WriteAttributeString("name", "archivable");
|
||||
writer.WriteString("true");
|
||||
writer.WriteEndElement();
|
||||
writer.WriteEndElement();
|
||||
writer.WriteEndElement();
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -39,7 +39,6 @@ namespace RBXLegacyLauncher
|
|||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CharacterCustomization));
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
|
|
@ -47,7 +46,6 @@ namespace RBXLegacyLauncher
|
|||
this.textBox2 = new System.Windows.Forms.TextBox();
|
||||
this.textBox3 = new System.Windows.Forms.TextBox();
|
||||
this.textBox4 = new System.Windows.Forms.TextBox();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.textBox5 = new System.Windows.Forms.TextBox();
|
||||
this.textBox6 = new System.Windows.Forms.TextBox();
|
||||
this.textBox7 = new System.Windows.Forms.TextBox();
|
||||
|
|
@ -55,18 +53,33 @@ namespace RBXLegacyLauncher
|
|||
this.label9 = new System.Windows.Forms.Label();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.label11 = new System.Windows.Forms.Label();
|
||||
this.label12 = new System.Windows.Forms.Label();
|
||||
this.label13 = new System.Windows.Forms.Label();
|
||||
this.label14 = new System.Windows.Forms.Label();
|
||||
this.textBox8 = new System.Windows.Forms.TextBox();
|
||||
this.textBox9 = new System.Windows.Forms.TextBox();
|
||||
this.textBox10 = new System.Windows.Forms.TextBox();
|
||||
this.label15 = new System.Windows.Forms.Label();
|
||||
this.tabControl1 = new System.Windows.Forms.TabControl();
|
||||
this.tabPage1 = new System.Windows.Forms.TabPage();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.listBox1 = new System.Windows.Forms.ListBox();
|
||||
this.listBox2 = new System.Windows.Forms.ListBox();
|
||||
this.listBox3 = new System.Windows.Forms.ListBox();
|
||||
this.label12 = new System.Windows.Forms.Label();
|
||||
this.label16 = new System.Windows.Forms.Label();
|
||||
this.label17 = new System.Windows.Forms.Label();
|
||||
this.label18 = new System.Windows.Forms.Label();
|
||||
this.tabPage2 = new System.Windows.Forms.TabPage();
|
||||
this.tabControl1.SuspendLayout();
|
||||
this.tabPage1.SuspendLayout();
|
||||
this.tabPage2.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Location = new System.Drawing.Point(35, 9);
|
||||
this.label1.Location = new System.Drawing.Point(28, 2);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(217, 14);
|
||||
this.label1.TabIndex = 0;
|
||||
|
|
@ -74,25 +87,17 @@ namespace RBXLegacyLauncher
|
|||
//
|
||||
// textBox1
|
||||
//
|
||||
this.textBox1.Location = new System.Drawing.Point(12, 26);
|
||||
this.textBox1.Location = new System.Drawing.Point(9, 19);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new System.Drawing.Size(260, 20);
|
||||
this.textBox1.Size = new System.Drawing.Size(240, 20);
|
||||
this.textBox1.TabIndex = 1;
|
||||
this.textBox1.Text = "0";
|
||||
this.textBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
this.textBox1.TextChanged += new System.EventHandler(this.TextBox1TextChanged);
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.label2.Location = new System.Drawing.Point(9, 77);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(260, 2);
|
||||
this.label2.TabIndex = 2;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.Location = new System.Drawing.Point(122, 79);
|
||||
this.label3.Location = new System.Drawing.Point(109, 74);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(33, 16);
|
||||
this.label3.TabIndex = 3;
|
||||
|
|
@ -100,7 +105,7 @@ namespace RBXLegacyLauncher
|
|||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.Location = new System.Drawing.Point(68, 101);
|
||||
this.label4.Location = new System.Drawing.Point(46, 96);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(49, 14);
|
||||
this.label4.TabIndex = 4;
|
||||
|
|
@ -108,7 +113,7 @@ namespace RBXLegacyLauncher
|
|||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.Location = new System.Drawing.Point(68, 127);
|
||||
this.label5.Location = new System.Drawing.Point(47, 122);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(49, 14);
|
||||
this.label5.TabIndex = 5;
|
||||
|
|
@ -116,15 +121,15 @@ namespace RBXLegacyLauncher
|
|||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.Location = new System.Drawing.Point(68, 156);
|
||||
this.label6.Location = new System.Drawing.Point(46, 148);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(58, 14);
|
||||
this.label6.Size = new System.Drawing.Size(57, 14);
|
||||
this.label6.TabIndex = 6;
|
||||
this.label6.Text = "T-Shirt ID";
|
||||
//
|
||||
// textBox2
|
||||
//
|
||||
this.textBox2.Location = new System.Drawing.Point(122, 98);
|
||||
this.textBox2.Location = new System.Drawing.Point(109, 93);
|
||||
this.textBox2.Name = "textBox2";
|
||||
this.textBox2.Size = new System.Drawing.Size(100, 20);
|
||||
this.textBox2.TabIndex = 7;
|
||||
|
|
@ -134,7 +139,7 @@ namespace RBXLegacyLauncher
|
|||
//
|
||||
// textBox3
|
||||
//
|
||||
this.textBox3.Location = new System.Drawing.Point(122, 124);
|
||||
this.textBox3.Location = new System.Drawing.Point(109, 119);
|
||||
this.textBox3.Name = "textBox3";
|
||||
this.textBox3.Size = new System.Drawing.Size(100, 20);
|
||||
this.textBox3.TabIndex = 8;
|
||||
|
|
@ -144,7 +149,7 @@ namespace RBXLegacyLauncher
|
|||
//
|
||||
// textBox4
|
||||
//
|
||||
this.textBox4.Location = new System.Drawing.Point(122, 150);
|
||||
this.textBox4.Location = new System.Drawing.Point(109, 145);
|
||||
this.textBox4.Name = "textBox4";
|
||||
this.textBox4.Size = new System.Drawing.Size(100, 20);
|
||||
this.textBox4.TabIndex = 9;
|
||||
|
|
@ -152,17 +157,9 @@ namespace RBXLegacyLauncher
|
|||
this.textBox4.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
this.textBox4.TextChanged += new System.EventHandler(this.TextBox4TextChanged);
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.label7.Location = new System.Drawing.Point(12, 179);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(260, 2);
|
||||
this.label7.TabIndex = 10;
|
||||
//
|
||||
// textBox5
|
||||
//
|
||||
this.textBox5.Location = new System.Drawing.Point(96, 200);
|
||||
this.textBox5.Location = new System.Drawing.Point(83, 195);
|
||||
this.textBox5.Name = "textBox5";
|
||||
this.textBox5.Size = new System.Drawing.Size(100, 20);
|
||||
this.textBox5.TabIndex = 17;
|
||||
|
|
@ -172,7 +169,7 @@ namespace RBXLegacyLauncher
|
|||
//
|
||||
// textBox6
|
||||
//
|
||||
this.textBox6.Location = new System.Drawing.Point(96, 226);
|
||||
this.textBox6.Location = new System.Drawing.Point(83, 224);
|
||||
this.textBox6.Name = "textBox6";
|
||||
this.textBox6.Size = new System.Drawing.Size(100, 20);
|
||||
this.textBox6.TabIndex = 16;
|
||||
|
|
@ -182,7 +179,7 @@ namespace RBXLegacyLauncher
|
|||
//
|
||||
// textBox7
|
||||
//
|
||||
this.textBox7.Location = new System.Drawing.Point(96, 252);
|
||||
this.textBox7.Location = new System.Drawing.Point(83, 252);
|
||||
this.textBox7.Name = "textBox7";
|
||||
this.textBox7.Size = new System.Drawing.Size(100, 20);
|
||||
this.textBox7.TabIndex = 15;
|
||||
|
|
@ -192,7 +189,7 @@ namespace RBXLegacyLauncher
|
|||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.Location = new System.Drawing.Point(41, 255);
|
||||
this.label8.Location = new System.Drawing.Point(28, 255);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(49, 14);
|
||||
this.label8.TabIndex = 14;
|
||||
|
|
@ -200,7 +197,7 @@ namespace RBXLegacyLauncher
|
|||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.Location = new System.Drawing.Point(41, 229);
|
||||
this.label9.Location = new System.Drawing.Point(28, 227);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(49, 14);
|
||||
this.label9.TabIndex = 13;
|
||||
|
|
@ -208,7 +205,7 @@ namespace RBXLegacyLauncher
|
|||
//
|
||||
// label10
|
||||
//
|
||||
this.label10.Location = new System.Drawing.Point(41, 203);
|
||||
this.label10.Location = new System.Drawing.Point(28, 198);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new System.Drawing.Size(49, 14);
|
||||
this.label10.TabIndex = 12;
|
||||
|
|
@ -216,34 +213,26 @@ namespace RBXLegacyLauncher
|
|||
//
|
||||
// label11
|
||||
//
|
||||
this.label11.Location = new System.Drawing.Point(122, 181);
|
||||
this.label11.Location = new System.Drawing.Point(120, 176);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new System.Drawing.Size(33, 16);
|
||||
this.label11.TabIndex = 11;
|
||||
this.label11.Text = "Hats";
|
||||
//
|
||||
// label12
|
||||
//
|
||||
this.label12.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.label12.Location = new System.Drawing.Point(9, 285);
|
||||
this.label12.Name = "label12";
|
||||
this.label12.Size = new System.Drawing.Size(260, 2);
|
||||
this.label12.TabIndex = 18;
|
||||
//
|
||||
// label13
|
||||
//
|
||||
this.label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label13.ForeColor = System.Drawing.Color.Red;
|
||||
this.label13.Location = new System.Drawing.Point(9, 296);
|
||||
this.label13.Location = new System.Drawing.Point(3, 275);
|
||||
this.label13.Name = "label13";
|
||||
this.label13.Size = new System.Drawing.Size(260, 74);
|
||||
this.label13.Size = new System.Drawing.Size(249, 69);
|
||||
this.label13.TabIndex = 19;
|
||||
this.label13.Text = resources.GetString("label13.Text");
|
||||
this.label13.TextAlign = System.Drawing.ContentAlignment.TopCenter;
|
||||
//
|
||||
// label14
|
||||
//
|
||||
this.label14.Location = new System.Drawing.Point(200, 181);
|
||||
this.label14.Location = new System.Drawing.Point(189, 176);
|
||||
this.label14.Name = "label14";
|
||||
this.label14.Size = new System.Drawing.Size(42, 16);
|
||||
this.label14.TabIndex = 23;
|
||||
|
|
@ -251,7 +240,7 @@ namespace RBXLegacyLauncher
|
|||
//
|
||||
// textBox8
|
||||
//
|
||||
this.textBox8.Location = new System.Drawing.Point(202, 200);
|
||||
this.textBox8.Location = new System.Drawing.Point(189, 195);
|
||||
this.textBox8.Name = "textBox8";
|
||||
this.textBox8.Size = new System.Drawing.Size(40, 20);
|
||||
this.textBox8.TabIndex = 24;
|
||||
|
|
@ -261,7 +250,7 @@ namespace RBXLegacyLauncher
|
|||
//
|
||||
// textBox9
|
||||
//
|
||||
this.textBox9.Location = new System.Drawing.Point(200, 226);
|
||||
this.textBox9.Location = new System.Drawing.Point(189, 224);
|
||||
this.textBox9.Name = "textBox9";
|
||||
this.textBox9.Size = new System.Drawing.Size(40, 20);
|
||||
this.textBox9.TabIndex = 25;
|
||||
|
|
@ -271,7 +260,7 @@ namespace RBXLegacyLauncher
|
|||
//
|
||||
// textBox10
|
||||
//
|
||||
this.textBox10.Location = new System.Drawing.Point(200, 252);
|
||||
this.textBox10.Location = new System.Drawing.Point(189, 252);
|
||||
this.textBox10.Name = "textBox10";
|
||||
this.textBox10.Size = new System.Drawing.Size(40, 20);
|
||||
this.textBox10.TabIndex = 26;
|
||||
|
|
@ -283,59 +272,201 @@ namespace RBXLegacyLauncher
|
|||
//
|
||||
this.label15.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label15.ForeColor = System.Drawing.Color.Red;
|
||||
this.label15.Location = new System.Drawing.Point(1, 49);
|
||||
this.label15.Location = new System.Drawing.Point(12, 42);
|
||||
this.label15.Name = "label15";
|
||||
this.label15.Size = new System.Drawing.Size(278, 27);
|
||||
this.label15.Size = new System.Drawing.Size(233, 27);
|
||||
this.label15.TabIndex = 27;
|
||||
this.label15.Text = "Note: THIS IS REQUIRED IN ORDER FOR THE OUTFIT TO WORK.";
|
||||
this.label15.TextAlign = System.Drawing.ContentAlignment.TopCenter;
|
||||
//
|
||||
// tabControl1
|
||||
//
|
||||
this.tabControl1.Controls.Add(this.tabPage1);
|
||||
this.tabControl1.Controls.Add(this.tabPage2);
|
||||
this.tabControl1.Location = new System.Drawing.Point(9, 12);
|
||||
this.tabControl1.Name = "tabControl1";
|
||||
this.tabControl1.SelectedIndex = 0;
|
||||
this.tabControl1.ShowToolTips = true;
|
||||
this.tabControl1.Size = new System.Drawing.Size(263, 367);
|
||||
this.tabControl1.TabIndex = 28;
|
||||
this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged);
|
||||
//
|
||||
// tabPage1
|
||||
//
|
||||
this.tabPage1.Controls.Add(this.label7);
|
||||
this.tabPage1.Controls.Add(this.label2);
|
||||
this.tabPage1.Controls.Add(this.textBox10);
|
||||
this.tabPage1.Controls.Add(this.label15);
|
||||
this.tabPage1.Controls.Add(this.textBox9);
|
||||
this.tabPage1.Controls.Add(this.textBox1);
|
||||
this.tabPage1.Controls.Add(this.textBox8);
|
||||
this.tabPage1.Controls.Add(this.label1);
|
||||
this.tabPage1.Controls.Add(this.textBox5);
|
||||
this.tabPage1.Controls.Add(this.label14);
|
||||
this.tabPage1.Controls.Add(this.textBox6);
|
||||
this.tabPage1.Controls.Add(this.label13);
|
||||
this.tabPage1.Controls.Add(this.textBox7);
|
||||
this.tabPage1.Controls.Add(this.label11);
|
||||
this.tabPage1.Controls.Add(this.label8);
|
||||
this.tabPage1.Controls.Add(this.textBox2);
|
||||
this.tabPage1.Controls.Add(this.label9);
|
||||
this.tabPage1.Controls.Add(this.label3);
|
||||
this.tabPage1.Controls.Add(this.label10);
|
||||
this.tabPage1.Controls.Add(this.label4);
|
||||
this.tabPage1.Controls.Add(this.label5);
|
||||
this.tabPage1.Controls.Add(this.label6);
|
||||
this.tabPage1.Controls.Add(this.textBox4);
|
||||
this.tabPage1.Controls.Add(this.textBox3);
|
||||
this.tabPage1.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage1.Name = "tabPage1";
|
||||
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage1.Size = new System.Drawing.Size(255, 341);
|
||||
this.tabPage1.TabIndex = 0;
|
||||
this.tabPage1.Text = "Online Editor";
|
||||
this.tabPage1.ToolTipText = "Requires Internet Connection";
|
||||
this.tabPage1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.label7.Location = new System.Drawing.Point(12, 72);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(228, 2);
|
||||
this.label7.TabIndex = 29;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.label2.Location = new System.Drawing.Point(12, 174);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(228, 2);
|
||||
this.label2.TabIndex = 28;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(6, 6);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(243, 40);
|
||||
this.button1.TabIndex = 0;
|
||||
this.button1.Text = "Edit Character Colors";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.Button1Click);
|
||||
//
|
||||
// listBox1
|
||||
//
|
||||
this.listBox1.FormattingEnabled = true;
|
||||
this.listBox1.Location = new System.Drawing.Point(6, 85);
|
||||
this.listBox1.Name = "listBox1";
|
||||
this.listBox1.Size = new System.Drawing.Size(243, 69);
|
||||
this.listBox1.TabIndex = 1;
|
||||
this.listBox1.SelectedIndexChanged += new System.EventHandler(this.ListBox1SelectedIndexChanged);
|
||||
//
|
||||
// listBox2
|
||||
//
|
||||
this.listBox2.FormattingEnabled = true;
|
||||
this.listBox2.Location = new System.Drawing.Point(6, 173);
|
||||
this.listBox2.Name = "listBox2";
|
||||
this.listBox2.Size = new System.Drawing.Size(243, 69);
|
||||
this.listBox2.TabIndex = 2;
|
||||
this.listBox2.SelectedIndexChanged += new System.EventHandler(this.ListBox2SelectedIndexChanged);
|
||||
//
|
||||
// listBox3
|
||||
//
|
||||
this.listBox3.FormattingEnabled = true;
|
||||
this.listBox3.Location = new System.Drawing.Point(6, 266);
|
||||
this.listBox3.Name = "listBox3";
|
||||
this.listBox3.Size = new System.Drawing.Size(243, 69);
|
||||
this.listBox3.TabIndex = 3;
|
||||
this.listBox3.SelectedIndexChanged += new System.EventHandler(this.ListBox3SelectedIndexChanged);
|
||||
//
|
||||
// label12
|
||||
//
|
||||
this.label12.Location = new System.Drawing.Point(108, 69);
|
||||
this.label12.Name = "label12";
|
||||
this.label12.Size = new System.Drawing.Size(35, 13);
|
||||
this.label12.TabIndex = 4;
|
||||
this.label12.Text = "Hat 1";
|
||||
//
|
||||
// label16
|
||||
//
|
||||
this.label16.Location = new System.Drawing.Point(108, 157);
|
||||
this.label16.Name = "label16";
|
||||
this.label16.Size = new System.Drawing.Size(35, 13);
|
||||
this.label16.TabIndex = 5;
|
||||
this.label16.Text = "Hat 2";
|
||||
//
|
||||
// label17
|
||||
//
|
||||
this.label17.Location = new System.Drawing.Point(108, 245);
|
||||
this.label17.Name = "label17";
|
||||
this.label17.Size = new System.Drawing.Size(35, 18);
|
||||
this.label17.TabIndex = 6;
|
||||
this.label17.Text = "Hat 3";
|
||||
//
|
||||
// label18
|
||||
//
|
||||
this.label18.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.label18.Location = new System.Drawing.Point(6, 58);
|
||||
this.label18.Name = "label18";
|
||||
this.label18.Size = new System.Drawing.Size(243, 2);
|
||||
this.label18.TabIndex = 7;
|
||||
//
|
||||
// tabPage2
|
||||
//
|
||||
this.tabPage2.Controls.Add(this.label18);
|
||||
this.tabPage2.Controls.Add(this.label17);
|
||||
this.tabPage2.Controls.Add(this.label16);
|
||||
this.tabPage2.Controls.Add(this.label12);
|
||||
this.tabPage2.Controls.Add(this.listBox3);
|
||||
this.tabPage2.Controls.Add(this.listBox2);
|
||||
this.tabPage2.Controls.Add(this.listBox1);
|
||||
this.tabPage2.Controls.Add(this.button1);
|
||||
this.tabPage2.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage2.Name = "tabPage2";
|
||||
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage2.Size = new System.Drawing.Size(255, 341);
|
||||
this.tabPage2.TabIndex = 1;
|
||||
this.tabPage2.Text = "Offline Editor";
|
||||
this.tabPage2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// CharacterCustomization
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.SystemColors.ControlLightLight;
|
||||
this.ClientSize = new System.Drawing.Size(281, 373);
|
||||
this.Controls.Add(this.label15);
|
||||
this.Controls.Add(this.textBox10);
|
||||
this.Controls.Add(this.textBox9);
|
||||
this.Controls.Add(this.textBox8);
|
||||
this.Controls.Add(this.label14);
|
||||
this.Controls.Add(this.label13);
|
||||
this.Controls.Add(this.label12);
|
||||
this.Controls.Add(this.textBox5);
|
||||
this.Controls.Add(this.textBox6);
|
||||
this.Controls.Add(this.textBox7);
|
||||
this.Controls.Add(this.label8);
|
||||
this.Controls.Add(this.label9);
|
||||
this.Controls.Add(this.label10);
|
||||
this.Controls.Add(this.label11);
|
||||
this.Controls.Add(this.label7);
|
||||
this.Controls.Add(this.textBox4);
|
||||
this.Controls.Add(this.textBox3);
|
||||
this.Controls.Add(this.textBox2);
|
||||
this.Controls.Add(this.label6);
|
||||
this.Controls.Add(this.label5);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.textBox1);
|
||||
this.Controls.Add(this.label1);
|
||||
this.ClientSize = new System.Drawing.Size(281, 391);
|
||||
this.Controls.Add(this.tabControl1);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.Name = "CharacterCustomization";
|
||||
this.Text = "Character Customization";
|
||||
this.Load += new System.EventHandler(this.CharacterCustomizationLoad);
|
||||
this.tabControl1.ResumeLayout(false);
|
||||
this.tabPage1.ResumeLayout(false);
|
||||
this.tabPage1.PerformLayout();
|
||||
this.tabPage2.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
private System.Windows.Forms.Label label12;
|
||||
private System.Windows.Forms.Label label16;
|
||||
private System.Windows.Forms.Label label17;
|
||||
private System.Windows.Forms.Label label18;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.ListBox listBox2;
|
||||
private System.Windows.Forms.ListBox listBox3;
|
||||
private System.Windows.Forms.ListBox listBox1;
|
||||
private System.Windows.Forms.TabPage tabPage2;
|
||||
private System.Windows.Forms.TabPage tabPage1;
|
||||
private System.Windows.Forms.TabControl tabControl1;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Label label15;
|
||||
private System.Windows.Forms.TextBox textBox10;
|
||||
private System.Windows.Forms.TextBox textBox9;
|
||||
private System.Windows.Forms.TextBox textBox8;
|
||||
private System.Windows.Forms.Label label14;
|
||||
private System.Windows.Forms.Label label13;
|
||||
private System.Windows.Forms.Label label12;
|
||||
private System.Windows.Forms.Label label11;
|
||||
private System.Windows.Forms.Label label10;
|
||||
private System.Windows.Forms.Label label9;
|
||||
|
|
@ -343,7 +474,6 @@ namespace RBXLegacyLauncher
|
|||
private System.Windows.Forms.TextBox textBox7;
|
||||
private System.Windows.Forms.TextBox textBox6;
|
||||
private System.Windows.Forms.TextBox textBox5;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.TextBox textBox4;
|
||||
private System.Windows.Forms.TextBox textBox3;
|
||||
private System.Windows.Forms.TextBox textBox2;
|
||||
|
|
@ -351,7 +481,6 @@ namespace RBXLegacyLauncher
|
|||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.TextBox textBox1;
|
||||
private System.Windows.Forms.Label label1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
using System;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using System.IO;
|
||||
|
||||
namespace RBXLegacyLauncher
|
||||
{
|
||||
|
|
@ -41,6 +42,15 @@ namespace RBXLegacyLauncher
|
|||
textBox8.Text = GlobalVars.Custom_Hat1Version.ToString();
|
||||
textBox9.Text = GlobalVars.Custom_Hat2Version.ToString();
|
||||
textBox10.Text = GlobalVars.Custom_Hat3Version.ToString();
|
||||
|
||||
if (GlobalVars.CustomMode == 0)
|
||||
{
|
||||
tabControl1.SelectedTab = tabControl1.TabPages["tabPage1"];
|
||||
}
|
||||
else if (GlobalVars.CustomMode == 1)
|
||||
{
|
||||
tabControl1.SelectedTab = tabControl1.TabPages["tabPage2"];
|
||||
}
|
||||
}
|
||||
|
||||
void TextBox1TextChanged(object sender, EventArgs e)
|
||||
|
|
@ -227,5 +237,75 @@ namespace RBXLegacyLauncher
|
|||
GlobalVars.Custom_Hat3Version = 1;
|
||||
}
|
||||
}
|
||||
|
||||
void Button1Click(object sender, EventArgs e)
|
||||
{
|
||||
CharacterColors ccol = new CharacterColors();
|
||||
ccol.Show();
|
||||
}
|
||||
|
||||
void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (tabControl1.SelectedTab == tabControl1.TabPages["tabPage2"])//your specific tabname
|
||||
{
|
||||
string hatdir = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\content\\charcustom\\hats";
|
||||
if (Directory.Exists(hatdir))
|
||||
{
|
||||
DirectoryInfo dinfo = new DirectoryInfo(hatdir);
|
||||
FileInfo[] Files = dinfo.GetFiles("*.rbxm");
|
||||
foreach( FileInfo file in Files )
|
||||
{
|
||||
listBox1.Items.Add(file.Name);
|
||||
listBox2.Items.Add(file.Name);
|
||||
listBox3.Items.Add(file.Name);
|
||||
}
|
||||
listBox1.SelectedIndex = GlobalVars.Custom_Hat1ID_Offline-1;
|
||||
listBox2.SelectedIndex = GlobalVars.Custom_Hat2ID_Offline-1;
|
||||
listBox3.SelectedIndex = GlobalVars.Custom_Hat3ID_Offline-1;
|
||||
GlobalVars.CustomMode = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
GlobalVars.CustomMode = 0;
|
||||
listBox1.Items.Add("Offline character customization is not supported");
|
||||
listBox1.Items.Add("on this client.");
|
||||
button1.Enabled = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
GlobalVars.CustomMode = 0;
|
||||
listBox1.Items.Clear();
|
||||
listBox2.Items.Clear();
|
||||
listBox3.Items.Clear();
|
||||
}
|
||||
}
|
||||
|
||||
void ListBox1SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
string hatdir = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\content\\charcustom\\hats";
|
||||
if (Directory.Exists(hatdir))
|
||||
{
|
||||
GlobalVars.Custom_Hat1ID_Offline = listBox1.SelectedIndex+1;
|
||||
}
|
||||
}
|
||||
|
||||
void ListBox2SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
string hatdir = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\content\\charcustom\\hats";
|
||||
if (Directory.Exists(hatdir))
|
||||
{
|
||||
GlobalVars.Custom_Hat2ID_Offline = listBox2.SelectedIndex+1;
|
||||
}
|
||||
}
|
||||
|
||||
void ListBox3SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
string hatdir = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\content\\charcustom\\hats";
|
||||
if (Directory.Exists(hatdir))
|
||||
{
|
||||
GlobalVars.Custom_Hat3ID_Offline = listBox3.SelectedIndex+1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
public static bool UseAppearanceID = false;
|
||||
public static bool UseCustomAppearanceID = false;
|
||||
//client shit
|
||||
public static string SelectedClient = "2008";
|
||||
public static string SelectedClient = "Mid-2008";
|
||||
public static bool UsesPlayerName = false;
|
||||
public static bool UsesID = true;
|
||||
public static bool SupportsLocalPlay = true;
|
||||
|
|
@ -48,4 +48,9 @@
|
|||
public static int Custom_Hat1Version = 1;
|
||||
public static int Custom_Hat2Version = 1;
|
||||
public static int Custom_Hat3Version = 1;
|
||||
//charcustom offline
|
||||
public static int CustomMode = 0;
|
||||
public static int Custom_Hat1ID_Offline = 6;
|
||||
public static int Custom_Hat2ID_Offline = 6;
|
||||
public static int Custom_Hat3ID_Offline = 6;
|
||||
}
|
||||
|
|
@ -116,6 +116,7 @@ namespace RBXLegacyLauncher
|
|||
this.label28 = new System.Windows.Forms.Label();
|
||||
this.button6 = new System.Windows.Forms.Button();
|
||||
this.textBox5 = new System.Windows.Forms.TextBox();
|
||||
this.button18 = new System.Windows.Forms.Button();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||
this.tabControl1.SuspendLayout();
|
||||
this.tabPage1.SuspendLayout();
|
||||
|
|
@ -257,6 +258,7 @@ namespace RBXLegacyLauncher
|
|||
//
|
||||
// tabPage2
|
||||
//
|
||||
this.tabPage2.Controls.Add(this.button18);
|
||||
this.tabPage2.Controls.Add(this.label32);
|
||||
this.tabPage2.Controls.Add(this.label20);
|
||||
this.tabPage2.Controls.Add(this.label19);
|
||||
|
|
@ -306,9 +308,9 @@ namespace RBXLegacyLauncher
|
|||
//
|
||||
this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.button2.Location = new System.Drawing.Point(105, 229);
|
||||
this.button2.Location = new System.Drawing.Point(66, 230);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(191, 51);
|
||||
this.button2.Size = new System.Drawing.Size(126, 51);
|
||||
this.button2.TabIndex = 2;
|
||||
this.button2.Text = "START SERVER";
|
||||
this.button2.UseVisualStyleBackColor = true;
|
||||
|
|
@ -603,6 +605,7 @@ namespace RBXLegacyLauncher
|
|||
this.tabPage6.Size = new System.Drawing.Size(405, 284);
|
||||
this.tabPage6.TabIndex = 6;
|
||||
this.tabPage6.Text = "SAVED";
|
||||
this.tabPage6.ToolTipText = "Lists all your saved servers and ports";
|
||||
this.tabPage6.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// button17
|
||||
|
|
@ -962,6 +965,16 @@ namespace RBXLegacyLauncher
|
|||
this.textBox5.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
this.textBox5.TextChanged += new System.EventHandler(this.TextBox5TextChanged);
|
||||
//
|
||||
// button18
|
||||
//
|
||||
this.button18.Location = new System.Drawing.Point(201, 230);
|
||||
this.button18.Name = "button18";
|
||||
this.button18.Size = new System.Drawing.Size(126, 51);
|
||||
this.button18.TabIndex = 20;
|
||||
this.button18.Text = "START SERVER IN NOGRAPHICS MODE";
|
||||
this.button18.UseVisualStyleBackColor = true;
|
||||
this.button18.Click += new System.EventHandler(this.Button18Click);
|
||||
//
|
||||
// MainForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
|
|
@ -1008,6 +1021,7 @@ namespace RBXLegacyLauncher
|
|||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
private System.Windows.Forms.Button button18;
|
||||
private System.Windows.Forms.Button button16;
|
||||
private System.Windows.Forms.Button button17;
|
||||
private System.Windows.Forms.Button button12;
|
||||
|
|
|
|||
|
|
@ -114,22 +114,39 @@ namespace RBXLegacyLauncher
|
|||
{
|
||||
args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(0,'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'Player'," + GlobalVars.CharacterAppearanceID + ");" + quote;
|
||||
}
|
||||
else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits())
|
||||
else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits() && !IsInOfflineMode())
|
||||
{
|
||||
args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(" + GlobalVars.UserID + ",'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "',0,'" + GlobalVars.Custom_ColorHash + "'," + GlobalVars.Custom_PantsID + "," + GlobalVars.Custom_ShirtsID + "," + GlobalVars.Custom_TShirtsID + "," + GlobalVars.Custom_Hat1ID + "," + GlobalVars.Custom_Hat2ID + "," + GlobalVars.Custom_Hat3ID + "," + GlobalVars.Custom_Hat1Version + "," + GlobalVars.Custom_Hat2Version + "," + GlobalVars.Custom_Hat3Version + ");" + quote;
|
||||
}
|
||||
else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits())
|
||||
else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits() && !IsInOfflineMode())
|
||||
{
|
||||
args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(" + GlobalVars.UserID + ",'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'Player',0,'" + GlobalVars.Custom_ColorHash + "'," + GlobalVars.Custom_PantsID + "," + GlobalVars.Custom_ShirtsID + "," + GlobalVars.Custom_TShirtsID + "," + GlobalVars.Custom_Hat1ID + "," + GlobalVars.Custom_Hat2ID + "," + GlobalVars.Custom_Hat3ID + "," + GlobalVars.Custom_Hat1Version + "," + GlobalVars.Custom_Hat2Version + "," + GlobalVars.Custom_Hat3Version + ");" + quote;
|
||||
}
|
||||
//how the fuck does this even happen? oh well.
|
||||
else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == false && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits())
|
||||
else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == false && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits() && !IsInOfflineMode())
|
||||
{
|
||||
args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(0,'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "',0,'" + GlobalVars.Custom_ColorHash + "'," + GlobalVars.Custom_PantsID + "," + GlobalVars.Custom_ShirtsID + "," + GlobalVars.Custom_TShirtsID + "," + GlobalVars.Custom_Hat1ID + "," + GlobalVars.Custom_Hat2ID + "," + GlobalVars.Custom_Hat3ID + "," + GlobalVars.Custom_Hat1Version + "," + GlobalVars.Custom_Hat2Version + "," + GlobalVars.Custom_Hat3Version + ");" + quote;
|
||||
}
|
||||
else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == false && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits())
|
||||
else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == false && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits() && !IsInOfflineMode())
|
||||
{
|
||||
args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(0,'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'Player',0,'" + GlobalVars.Custom_ColorHash + "'," + GlobalVars.Custom_PantsID + "," + GlobalVars.Custom_ShirtsID + "," + GlobalVars.Custom_TShirtsID + "," + GlobalVars.Custom_Hat1ID + "," + GlobalVars.Custom_Hat2ID + "," + GlobalVars.Custom_Hat3ID + "," + GlobalVars.Custom_Hat1Version + "," + GlobalVars.Custom_Hat2Version + "," + GlobalVars.Custom_Hat3Version + ");" + quote;
|
||||
args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(0,'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'Player',0," + GlobalVars.Custom_Hat1ID_Offline + "," + GlobalVars.Custom_Hat2ID_Offline + "," + GlobalVars.Custom_Hat3ID_Offline + ");" + quote;
|
||||
}
|
||||
else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits() && IsInOfflineMode())
|
||||
{
|
||||
args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect2(" + GlobalVars.UserID + ",'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "',0," + GlobalVars.Custom_Hat1ID_Offline + "," + GlobalVars.Custom_Hat2ID_Offline + "," + GlobalVars.Custom_Hat3ID_Offline + ");" + quote;
|
||||
}
|
||||
else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits() && IsInOfflineMode())
|
||||
{
|
||||
args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect2(" + GlobalVars.UserID + ",'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'Player',0," + GlobalVars.Custom_Hat1ID_Offline + "," + GlobalVars.Custom_Hat2ID_Offline + "," + GlobalVars.Custom_Hat3ID_Offline + ");" + quote;
|
||||
}
|
||||
//how the fuck does this even happen? oh well.
|
||||
else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == false && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits() && IsInOfflineMode())
|
||||
{
|
||||
args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect2(0,'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "',0," + GlobalVars.Custom_Hat1ID_Offline + "," + GlobalVars.Custom_Hat2ID_Offline + "," + GlobalVars.Custom_Hat3ID_Offline + ");" + quote;
|
||||
}
|
||||
else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == false && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits() && IsInOfflineMode())
|
||||
{
|
||||
args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect2(0,'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'Player',0,'" + GlobalVars.Custom_ColorHash + "'," + GlobalVars.Custom_PantsID + "," + GlobalVars.Custom_ShirtsID + "," + GlobalVars.Custom_TShirtsID + "," + GlobalVars.Custom_Hat1ID + "," + GlobalVars.Custom_Hat2ID + "," + GlobalVars.Custom_Hat3ID + "," + GlobalVars.Custom_Hat1Version + "," + GlobalVars.Custom_Hat2Version + "," + GlobalVars.Custom_Hat3Version + ");" + quote;
|
||||
}
|
||||
else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs() && !IsUsingCustomOutfits())
|
||||
{
|
||||
|
|
@ -188,11 +205,11 @@ namespace RBXLegacyLauncher
|
|||
string args = "";
|
||||
if (GlobalVars.BodyColors == true)
|
||||
{
|
||||
args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSServer(" + GlobalVars.RobloxPort + ",true);";
|
||||
args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSServer(" + GlobalVars.RobloxPort + ",true); " + quote;
|
||||
}
|
||||
else if (GlobalVars.BodyColors == false)
|
||||
{
|
||||
args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSServer(" + GlobalVars.RobloxPort + ",false);";
|
||||
args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSServer(" + GlobalVars.RobloxPort + ",false);" + quote;
|
||||
}
|
||||
try
|
||||
{
|
||||
|
|
@ -272,7 +289,7 @@ namespace RBXLegacyLauncher
|
|||
|
||||
void ReadConfigValues()
|
||||
{
|
||||
string line1, line2, line3, line4, line5, line6, line7, line8, line9, line10, line11, line12, line13, line14, line15, line16, line17, line18, line19, line20;
|
||||
string line1, line2, line3, line4, line5, line6, line7, line8, line9, line10, line11, line12, line13, line14, line15, line16, line17, line18, line19, line20, line21, line22, line23, line24;
|
||||
|
||||
using(StreamReader reader = new StreamReader("config.txt"))
|
||||
{
|
||||
|
|
@ -296,6 +313,10 @@ namespace RBXLegacyLauncher
|
|||
line18 = reader.ReadLine();
|
||||
line19 = reader.ReadLine();
|
||||
line20 = reader.ReadLine();
|
||||
line21 = reader.ReadLine();
|
||||
line22 = reader.ReadLine();
|
||||
line23 = reader.ReadLine();
|
||||
line24 = reader.ReadLine();
|
||||
}
|
||||
|
||||
bool bline1 = Convert.ToBoolean(line1);
|
||||
|
|
@ -354,6 +375,18 @@ namespace RBXLegacyLauncher
|
|||
int iline20 = Convert.ToInt32(line20);
|
||||
GlobalVars.Custom_Hat3Version = iline20;
|
||||
|
||||
int iline21 = Convert.ToInt32(line21);
|
||||
GlobalVars.CustomMode = iline21;
|
||||
|
||||
int iline22 = Convert.ToInt32(line22);
|
||||
GlobalVars.Custom_Hat1ID_Offline = iline22;
|
||||
|
||||
int iline23 = Convert.ToInt32(line23);
|
||||
GlobalVars.Custom_Hat2ID_Offline = iline23;
|
||||
|
||||
int iline24 = Convert.ToInt32(line24);
|
||||
GlobalVars.Custom_Hat3ID_Offline = iline24;
|
||||
|
||||
if (GlobalVars.CloseOnLaunch == true)
|
||||
{
|
||||
checkBox1.Checked = true;
|
||||
|
|
@ -423,7 +456,32 @@ namespace RBXLegacyLauncher
|
|||
|
||||
void WriteConfigValues()
|
||||
{
|
||||
string[] lines = { GlobalVars.CloseOnLaunch.ToString(), GlobalVars.BodyColors.ToString(), GlobalVars.UserID.ToString(), GlobalVars.PlayerName.ToString(), GlobalVars.SelectedClient.ToString(), GlobalVars.CharacterAppearanceID.ToString(), GlobalVars.UseAppearanceID.ToString(), GlobalVars.Map.ToString(), GlobalVars.RobloxPort.ToString(), GlobalVars.UseCustomAppearanceID.ToString(), GlobalVars.Custom_ColorHash.ToString(), GlobalVars.Custom_ShirtsID.ToString(), GlobalVars.Custom_PantsID.ToString(), GlobalVars.Custom_TShirtsID.ToString(), GlobalVars.Custom_Hat1ID.ToString(), GlobalVars.Custom_Hat2ID.ToString(), GlobalVars.Custom_Hat3ID.ToString(), GlobalVars.Custom_Hat1Version.ToString(), GlobalVars.Custom_Hat2Version.ToString(), GlobalVars.Custom_Hat3Version.ToString()};
|
||||
string[] lines = {
|
||||
GlobalVars.CloseOnLaunch.ToString(),
|
||||
GlobalVars.BodyColors.ToString(),
|
||||
GlobalVars.UserID.ToString(),
|
||||
GlobalVars.PlayerName.ToString(),
|
||||
GlobalVars.SelectedClient.ToString(),
|
||||
GlobalVars.CharacterAppearanceID.ToString(),
|
||||
GlobalVars.UseAppearanceID.ToString(),
|
||||
GlobalVars.Map.ToString(),
|
||||
GlobalVars.RobloxPort.ToString(),
|
||||
GlobalVars.UseCustomAppearanceID.ToString(),
|
||||
GlobalVars.Custom_ColorHash.ToString(),
|
||||
GlobalVars.Custom_ShirtsID.ToString(),
|
||||
GlobalVars.Custom_PantsID.ToString(),
|
||||
GlobalVars.Custom_TShirtsID.ToString(),
|
||||
GlobalVars.Custom_Hat1ID.ToString(),
|
||||
GlobalVars.Custom_Hat2ID.ToString(),
|
||||
GlobalVars.Custom_Hat3ID.ToString(),
|
||||
GlobalVars.Custom_Hat1Version.ToString(),
|
||||
GlobalVars.Custom_Hat2Version.ToString(),
|
||||
GlobalVars.Custom_Hat3Version.ToString(),
|
||||
GlobalVars.CustomMode.ToString(),
|
||||
GlobalVars.Custom_Hat1ID_Offline.ToString(),
|
||||
GlobalVars.Custom_Hat2ID_Offline.ToString(),
|
||||
GlobalVars.Custom_Hat3ID_Offline.ToString(),
|
||||
};
|
||||
File.WriteAllLines("config.txt", lines);
|
||||
}
|
||||
|
||||
|
|
@ -446,6 +504,10 @@ namespace RBXLegacyLauncher
|
|||
GlobalVars.Custom_Hat1ID = 0;
|
||||
GlobalVars.Custom_Hat2ID = 0;
|
||||
GlobalVars.Custom_Hat3ID = 0;
|
||||
GlobalVars.CustomMode = 0;
|
||||
GlobalVars.Custom_Hat1ID_Offline = 1;
|
||||
GlobalVars.Custom_Hat2ID_Offline = 1;
|
||||
GlobalVars.Custom_Hat3ID_Offline = 1;
|
||||
WriteConfigValues();
|
||||
ReadConfigValues();
|
||||
}
|
||||
|
|
@ -784,6 +846,14 @@ namespace RBXLegacyLauncher
|
|||
return true;
|
||||
}
|
||||
|
||||
bool IsInOfflineMode()
|
||||
{
|
||||
if(GlobalVars.CustomMode == 1)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void Button7Click(object sender, EventArgs e)
|
||||
{
|
||||
WriteConfigValues();
|
||||
|
|
@ -949,5 +1019,46 @@ namespace RBXLegacyLauncher
|
|||
string[] lines_ports = File.ReadAllLines("ports.txt");
|
||||
listBox4.Items.AddRange(lines_ports);
|
||||
}
|
||||
|
||||
void Button18Click(object sender, EventArgs e)
|
||||
{
|
||||
DialogResult result = MessageBox.Show("Be sure to save your config options with the 'Save Config' button before you start a server!","RBXLegacy Launcher - Start Server", MessageBoxButtons.OKCancel, MessageBoxIcon.Information);
|
||||
if (result == DialogResult.Cancel)
|
||||
return;
|
||||
|
||||
string luafile = "";
|
||||
if (GlobalVars.ModernClient == true)
|
||||
{
|
||||
luafile = "rbxasset://scripts\\\\CSMPFunctions_Modern.lua";
|
||||
}
|
||||
else if (GlobalVars.ModernClient == false)
|
||||
{
|
||||
luafile = "rbxasset://scripts\\\\CSMPFunctions.lua";
|
||||
}
|
||||
string mapfile = GlobalVars.MapsDir + @"\\" + GlobalVars.Map;
|
||||
string rbxexe = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\RobloxApp.exe";
|
||||
string quote = "\"";
|
||||
string args = "";
|
||||
if (GlobalVars.BodyColors == true)
|
||||
{
|
||||
args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSServer(" + GlobalVars.RobloxPort + ",true); " + quote + " -no3d";
|
||||
}
|
||||
else if (GlobalVars.BodyColors == false)
|
||||
{
|
||||
args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSServer(" + GlobalVars.RobloxPort + ",false);" + quote + " -no3d";
|
||||
}
|
||||
try
|
||||
{
|
||||
Process.Start(rbxexe, args);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
DialogResult result2 = MessageBox.Show("Failed to launch RBXLegacy. (Error: " + ex.Message + ")","RBXLegacy Launcher - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
if (GlobalVars.CloseOnLaunch == true)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,6 +60,10 @@
|
|||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="CharacterColors.cs" />
|
||||
<Compile Include="CharacterColors.Designer.cs">
|
||||
<DependentUpon>CharacterColors.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="CharacterCustomization.cs" />
|
||||
<Compile Include="CharacterCustomization.Designer.cs">
|
||||
<DependentUpon>CharacterCustomization.cs</DependentUpon>
|
||||
|
|
@ -79,6 +83,9 @@
|
|||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="CharacterColors.resx">
|
||||
<DependentUpon>CharacterColors.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="CharacterCustomization.resx">
|
||||
<DependentUpon>CharacterCustomization.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -6,3 +6,4 @@ C:\Users\BITL\Documents\GitHub\RBXLegacy-src\RBXLegacyLauncher\RBXLegacyLauncher
|
|||
C:\Users\BITL\Documents\GitHub\RBXLegacy-src\RBXLegacyLauncher\RBXLegacyLauncher\bin\Release\RBXLegacyLauncher.exe.config
|
||||
C:\Users\BITL\Documents\GitHub\RBXLegacy-src\RBXLegacyLauncher\RBXLegacyLauncher\bin\Release\RBXLegacyLauncher.exe
|
||||
C:\Users\BITL\Documents\GitHub\RBXLegacy-src\RBXLegacyLauncher\RBXLegacyLauncher\obj\Release\RBXLegacyLauncher.exe
|
||||
C:\Users\BITL\Documents\GitHub\RBXLegacy-src\RBXLegacyLauncher\RBXLegacyLauncher\obj\Release\RBXLegacyLauncher.CharacterColors.resources
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -1,7 +1,7 @@
|
|||
; Script generated by the Inno Script Studio Wizard.
|
||||
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
||||
|
||||
#define AppVer "1.8.3"
|
||||
#define AppVer "1.8.4"
|
||||
|
||||
[Setup]
|
||||
; NOTE: The value of AppId uniquely identifies this application.
|
||||
|
|
|
|||
Loading…
Reference in New Issue