Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions utils/forms/profile_form.simba
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The account management system that handles profile storage, validation, and UI.

F2PCheckbox, MembersCheckbox: TLazCheckBox;

GermanyCheckbox, UKCheckbox, USCheckbox, AustraliaCheckbox: TLazCheckBox;
GermanyCheckbox, UKCheckbox, USCheckbox, AustraliaCheckbox , BrazilCheckbox: TLazCheckBox;

NormalCheckbox, DangerousCheckbox, RestrictedCheckbox, SkillTotalCheckbox: TLazCheckBox;

Expand Down Expand Up @@ -470,6 +470,8 @@ begin
Result.ExcludeLocations += [EWorldLocation.UNITED_STATES];
if not Self.AustraliaCheckbox.IsChecked() then
Result.ExcludeLocations += [EWorldLocation.AUSTRALIA];
if not Self.BrazilCheckbox.IsChecked() then
Result.ExcludeLocations += [EWorldLocation.BRAZIL];

if not Self.NormalCheckbox.IsChecked() then
Result.ExcludeActivities += [EWorldActivity.NORMAL];
Expand Down Expand Up @@ -560,7 +562,7 @@ Converts a world location enum to its display string.
*)
function TProfileForm.GetLocationString(loc: EWorldLocation): String;
const
LOCATION_NAMES: array [EWorldLocation] of String = ['Germany', 'UK', 'USA', 'Australia'];
LOCATION_NAMES: array [EWorldLocation] of String = ['Germany', 'UK', 'USA', 'Australia', 'Brazil'];
begin
Result := LOCATION_NAMES[loc];
end;
Expand Down Expand Up @@ -704,6 +706,7 @@ begin
EWorldLocation.UNITED_KINGDOM: if not Self.UKCheckbox.IsChecked() then Continue;
EWorldLocation.UNITED_STATES: if not Self.USCheckbox.IsChecked() then Continue;
EWorldLocation.AUSTRALIA: if not Self.AustraliaCheckbox.IsChecked() then Continue;
EWorldLocation.BRAZIL: if not Self.BrazilCheckbox.IsChecked() then Continue;
end;
tempWorlds[j] := tempWorlds[i];
Inc(j);
Expand Down Expand Up @@ -1025,6 +1028,13 @@ begin
Self.AustraliaCheckbox.Caption := 'Australia';
Self.AustraliaCheckbox.SetBounds(10, locY, Round(100 * scale), checkboxHeight);
Self.AustraliaCheckbox.SetChecked(True);

locY += checkboxHeight + 3;
Self.BrazilCheckbox := TLazCheckBox.Create(Self.LocationPanel);
Self.BrazilCheckbox.Parent := Self.LocationPanel;
Self.BrazilCheckbox.Caption := 'Brazil';
Self.BrazilCheckbox.SetBounds(10, locY, Round(100 * scale), checkboxHeight);
Self.BrazilCheckbox.SetChecked(True);
end;

(*
Expand Down
Loading