Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: refactor/restyle HouseGump and supporting gumps #1925

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
8 changes: 4 additions & 4 deletions Projects/UOContent/Gumps/Houses/ConfirmDemolishHouseGump.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ protected override void BuildLayout(ref StaticGumpBuilder builder)
* Once the house is demolished, anyone can attempt to place a new house on the vacant land.
* This action will not un-condemn any other houses on your account, nor will it end your 7-day waiting period (if it applies to you).
* Are you sure you wish to continue?
*/
*/
builder.AddHtmlLocalized(10, 40, 400, 200, 1061795, 32512, false, true);

builder.AddImageTiled(10, 250, 400, 20, 2624);
Expand All @@ -51,14 +51,14 @@ protected override void BuildLayout(ref StaticGumpBuilder builder)

public override void OnResponse(NetState state, in RelayInfo info)
{
if (info.ButtonID != 1 || _house.Deleted)
if (_house.Deleted || !_house.IsOwner(state.Mobile))
{
return;
}

if (!_house.IsOwner(state.Mobile))
if (info.ButtonID != 1)
{

state.Mobile.SendGump(new HouseGump(state.Mobile, _house, HouseGumpSection.Options));
return;
}

Expand Down
Loading
Loading