feat: Restyle young player gumps (#1917)
## Summary Restyles the three "young player" gumps: `YoungDungeonWarningGump` `YoungDeathNoticeGump` and `RenounceYoungGump` to a cleaner, more consistent style I made up. ### Screenshots <img width="265" alt="image" src="https://github.com/user-attachments/assets/bd872023-71eb-44ba-8421-f721df1198a5"> <br \> This one is spooky because they're dead. <br \> <img width="443" alt="image" src="https://github.com/user-attachments/assets/ec3729a1-026f-4edc-aaf0-9b353283117b"> <br \> <img width="467" alt="image" src="https://github.com/user-attachments/assets/f7821050-22dd-408a-a519-789bba813df2">
This commit is contained in:
parent
12a75d3c9c
commit
a86601ffea
1 changed files with 29 additions and 25 deletions
|
|
@ -9,15 +9,17 @@ public class YoungDungeonWarningGump : StaticGump<YoungDungeonWarningGump>
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override bool Singleton => true;
|
||||||
|
|
||||||
protected override void BuildLayout(ref StaticGumpBuilder builder)
|
protected override void BuildLayout(ref StaticGumpBuilder builder)
|
||||||
{
|
{
|
||||||
builder.AddBackground(0, 0, 250, 170, 0xA28);
|
builder.AddBackground(0, 0, 250, 170, 0x12E);
|
||||||
|
builder.AddBackground(10, 10, 230, 150, 0x1400);
|
||||||
|
|
||||||
// Warning: monsters may attack you on site down here in the dungeons!
|
// Warning: monsters may attack you on site down here in the dungeons!
|
||||||
builder.AddHtmlLocalized(20, 43, 215, 70, 1018030, true, true);
|
builder.AddHtmlLocalized(20, 25, 210, 70, 1018030, 0x7FFF);
|
||||||
|
|
||||||
builder.AddButton(70, 123, 0xFA5, 0xFA7, 0);
|
builder.AddButton(163, 125, 0xF8, 0xF9, 0);
|
||||||
builder.AddHtmlLocalized(105, 125, 100, 35, 1011036); // OKAY
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -27,31 +29,32 @@ public class YoungDeathNoticeGump : StaticGump<YoungDeathNoticeGump>
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override bool Singleton => true;
|
||||||
|
|
||||||
protected override void BuildLayout(ref StaticGumpBuilder builder)
|
protected override void BuildLayout(ref StaticGumpBuilder builder)
|
||||||
{
|
{
|
||||||
builder.SetNoClose();
|
builder.SetNoClose();
|
||||||
|
|
||||||
builder.AddBackground(25, 10, 425, 444, 0x13BE);
|
builder.AddBackground(25, 10, 425, 444, 0x12E);
|
||||||
|
builder.AddBackground(35, 20, 405, 424, 0x1400);
|
||||||
|
builder.AddAlphaRegion(25, 10, 425, 444);
|
||||||
|
|
||||||
builder.AddImageTiled(33, 20, 407, 425, 0xA40);
|
builder.AddHtmlLocalized(190, 34, 120, 20, 1046287, 0x7D00); // You have died.
|
||||||
builder.AddAlphaRegion(33, 20, 407, 425);
|
|
||||||
|
|
||||||
builder.AddHtmlLocalized(190, 24, 120, 20, 1046287, 0x7D00); // You have died.
|
|
||||||
|
|
||||||
// As a ghost you cannot interact with the world. You cannot touch items nor can you use them.
|
// As a ghost you cannot interact with the world. You cannot touch items nor can you use them.
|
||||||
builder.AddHtmlLocalized(50, 50, 380, 40, 1046288, 0x7FFF);
|
builder.AddHtmlLocalized(50, 60, 380, 40, 1046288, 0x7FFF);
|
||||||
// You can pass through doors as though they do not exist. However, you cannot pass through walls.
|
// You can pass through doors as though they do not exist. However, you cannot pass through walls.
|
||||||
builder.AddHtmlLocalized(50, 100, 380, 45, 1046289, 0x7FFF);
|
builder.AddHtmlLocalized(50, 105, 380, 45, 1046289, 0x7FFF);
|
||||||
// Since you are a new player, any items you had on your person at the time of your death will be in your backpack upon resurrection.
|
// Since you are a new player, any items you had on your person at the time of your death will be in your backpack upon resurrection.
|
||||||
builder.AddHtmlLocalized(50, 140, 380, 60, 1046291, 0x7FFF);
|
builder.AddHtmlLocalized(50, 150, 380, 60, 1046291, 0x7FFF);
|
||||||
// To be resurrected you must find a healer in town or wandering in the wilderness. Some powerful players may also be able to resurrect you.
|
// To be resurrected you must find a healer in town or wandering in the wilderness. Some powerful players may also be able to resurrect you.
|
||||||
builder.AddHtmlLocalized(50, 204, 380, 65, 1046292, 0x7FFF);
|
builder.AddHtmlLocalized(50, 214, 380, 65, 1046292, 0x7FFF);
|
||||||
// While you are still in young status, you will be transported to the nearest healer (along with your items) at the time of your death.
|
// While you are still in young status, you will be transported to the nearest healer (along with your items) at the time of your death.
|
||||||
builder.AddHtmlLocalized(50, 269, 380, 65, 1046293, 0x7FFF);
|
builder.AddHtmlLocalized(50, 279, 380, 65, 1046293, 0x7FFF);
|
||||||
// To rejoin the world of the living simply walk near one of the NPC healers, and they will resurrect you as long as you are not marked as a criminal.
|
// To rejoin the world of the living simply walk near one of the NPC healers, and they will resurrect you as long as you are not marked as a criminal.
|
||||||
builder.AddHtmlLocalized(50, 334, 380, 70, 1046294, 0x7FFF);
|
builder.AddHtmlLocalized(50, 339, 380, 70, 1046294, 0x7FFF);
|
||||||
|
|
||||||
builder.AddButton(195, 410, 0xF8, 0xF9, 0);
|
builder.AddButton(363, 409, 0xF8, 0xF9, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -61,13 +64,17 @@ public class RenounceYoungGump : StaticGump<RenounceYoungGump>
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override bool Singleton => true;
|
||||||
|
|
||||||
protected override void BuildLayout(ref StaticGumpBuilder builder)
|
protected override void BuildLayout(ref StaticGumpBuilder builder)
|
||||||
{
|
{
|
||||||
builder.AddBackground(0, 0, 450, 400, 0xA28);
|
builder.AddBackground(0, 0, 450, 330, 0x12E);
|
||||||
|
builder.AddBackground(10, 10, 430, 310, 0x1400);
|
||||||
|
|
||||||
builder.AddHtmlLocalized(0, 30, 450, 35, 1013004); // <center> Renouncing 'Young Player' Status</center>
|
builder.AddHtmlLocalized(0, 24, 450, 20, 1013004, 0x7FFF); // <center> Renouncing 'Young Player' Status</center>
|
||||||
|
|
||||||
/* As a 'Young' player, you are currently under a system of protection that prevents
|
/*
|
||||||
|
* As a 'Young' player, you are currently under a system of protection that prevents
|
||||||
* you from being attacked by other players and certain monsters.<br><br>
|
* you from being attacked by other players and certain monsters.<br><br>
|
||||||
*
|
*
|
||||||
* If you choose to renounce your status as a 'Young' player, you will lose this protection.
|
* If you choose to renounce your status as a 'Young' player, you will lose this protection.
|
||||||
|
|
@ -77,13 +84,10 @@ public class RenounceYoungGump : StaticGump<RenounceYoungGump>
|
||||||
* Select OKAY now if you wish to renounce your status as a 'Young' player, otherwise
|
* Select OKAY now if you wish to renounce your status as a 'Young' player, otherwise
|
||||||
* press CANCEL.
|
* press CANCEL.
|
||||||
*/
|
*/
|
||||||
builder.AddHtmlLocalized(30, 70, 390, 210, 1013005, true, true);
|
builder.AddHtmlLocalized(25, 50, 380, 210, 1013005, 0x7FFF);
|
||||||
|
|
||||||
builder.AddButton(45, 298, 0xFA5, 0xFA7, 1);
|
builder.AddButton(363, 285, 0xF8, 0xF9, 1); // OKAY
|
||||||
builder. AddHtmlLocalized(78, 300, 100, 35, 1011036); // OKAY
|
builder.AddButton(283, 285, 0xF1, 0xF2, 0); // CANCEL
|
||||||
|
|
||||||
builder.AddButton(178, 298, 0xFA5, 0xFA7, 0);
|
|
||||||
builder.AddHtmlLocalized(211, 300, 100, 35, 1011012); // CANCEL
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnResponse(NetState sender, in RelayInfo info)
|
public override void OnResponse(NetState sender, in RelayInfo info)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue