Skip to content

Commit

Permalink
NPC dialogue boxes + plains changes!
Browse files Browse the repository at this point in the history
Added new NPC dialogue boxes, and some new grass tiles and shrubs for the plains.
  • Loading branch information
PandaLegend committed Sep 21, 2024
1 parent d622fb4 commit a055291
Show file tree
Hide file tree
Showing 15 changed files with 549 additions and 464 deletions.
Binary file added assets/interface/npcDialogue1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/interface/npcDialogueHeaderEdge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/interface/scroll.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/interface/scrollBackground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/interface/scrollBottom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/interface/scrollUnopened.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/objects/plainsShrub1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/objects/plainsShrub2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/objects/plainsShrub3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/playerCustom/skinTone/elfLight1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/playerCustom/skinTone/humanLight1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/tilemap/eaglecrest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
924 changes: 486 additions & 438 deletions gamedata/areadata.js

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,12 @@ <h1>Trade</h1>

<div id="npcChatBanner1" class="npcChatBanner" hidden>
<div id="npcChatImage"></div>
<p id="npcChatBannerHeader1" class="npcChatBannerHeader"></p>
<div id="npcChatHeaderParentBox" class="npcChatHeaderParentBox">
<div id="npcChatHeaderBox" class="npcChatHeaderBox";>
<p id="npcChatBannerHeader1" class="npcChatBannerHeader"></p>
</div><div id="npcChatHeaderEdge"; class="npcChatHeaderEdge";> </div>
</div>
<div class="clear"></div>
<p id="npcChatBannerText1" class="npcChatBannerText"></p>
<img id="npcChatNext" src="assets/icons/dialogueNext.png"></img>
</div>
Expand Down
82 changes: 57 additions & 25 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -272,17 +272,15 @@ thead:after { /* space after bags in bank */
/* */

.npcChatBanner {
border: 1px solid black; /* can go soon */
width: 700px;
height: 116px;
width: 735px;
height: 150px;
padding-left: 10px;
padding-right: 10px;
background-color: var(--page); /* can go soon */
background-image: url("./assets/interface/npcDialogue1.png"); /* can go soon */
overflow: visible; /* for image popping out */
position: relative;
top: 50px;
top: 125px;
zoom: var(--zoom);
/* background-image: url("assets/dom/bookBackground.png"); */
text-align: left;
margin: auto;
opacity: var(--opacity);
Expand All @@ -296,21 +294,49 @@ thead:after { /* space after bags in bank */
width: 100px;
height: 80px;
position: absolute;
top: -33px;
top: -50px;
left: 35px;
}

#npcChatHeaderBox {
background-color: #672800;
width: max-content;
height: 31px;
position: relative;
left: 137px;
float: left;
}

.npcChatBannerHeader {
margin-top: 20px;
position: relative;
margin-top: -3px;
margin-bottom: 15px;
margin-left: 80px;
margin-left: 10px;
font-weight: bold;
font-size: 32px;
font-size: 27px;
top: 10px;
margin-right: 10px;
color: #ada978;
}


#npcChatHeaderEdge {
background-image: url("./assets/interface/npcDialogueHeaderEdge.png");
width:24px;
height:24px;
float: left;
position: relative;
margin-left: 137px;
margin-top: 7px;
}

.clear {clear: both;}

.npcChatBannerText {
margin-top: 10px;
margin-bottom: 10px;
margin-top: 8px;
margin-right: 26px; /* so it doesn't overlap the dialogueNext image */
margin-left: 20px;
position: relative;

font-size: 22px;
line-height: 26px;
Expand All @@ -320,42 +346,48 @@ thead:after { /* space after bags in bank */
height: 22px;

position: absolute;
right: 7px;
bottom: 7px;
right: 20px;
bottom: 20px;

z-index: 50;
}

#chatBannerOptions {
border: 1px solid black; /* can go soon */

width: 260px;
padding-left: 10px;
padding-right: 10px;
background-color: var(--page); /* can go soon */
overflow: visible; /* for image popping out */
position: relative;
top: 49px;
left: 220px;
top: 109px;
left: 177px;
zoom: var(--zoom);
text-align: left;
margin: auto;
opacity: var(--opacity);

z-index: 50;

}

#chatBannerOptionList {
margin-top: 5px;
margin-bottom: 5px;
padding-left: 22px;
background-color: #ACA181;
padding-top: 15px;
padding-bottom: 5px;
position: relative;
background-clip: padding-box;
border-left: 22px solid transparent;
border-right: 22px solid transparent;
border-bottom: 32px solid transparent;
border-image: url("./assets/interface/scroll.png") 68 round;
width: 207px;
padding-inline-start: 30px;
background-image: url("./assets/interface/scrollBackground.png");

}

.chatBannerOption {

list-style-image: url(assets/icons/dialogueChoiceBullet.png);

font-size: 22px;

padding-bottom: 5px;
padding-top: 5px;
}
Expand Down

0 comments on commit a055291

Please sign in to comment.