Skip to content

Commit

Permalink
use relative format, add links to about-boe
Browse files Browse the repository at this point in the history
  • Loading branch information
NQNStudios committed Nov 16, 2024
1 parent 990fd68 commit 59363d8
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 19 deletions.
23 changes: 14 additions & 9 deletions pkg/credits/about-boe-template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,26 @@
<!-- Bandit Busywork -->The Almighty Doer of Stuff <br/>
</text>
</pane>
<text top='143' left='50' width='410' height='51'>
<text top='153' left='50' width='410' height='51'>
Blades of Exile is brought to you by Spiderweb Software - <br/>
"Where our aberrations become your reality." <br/>
"Blades of Exile" and Spiderweb Software are trademarks of Spiderweb Software.
</text>
<text top='195' left='50' width='424' height='145'>
Open Blades of Exile is brought to you from the hard work of volunteers who are passionate about this software.
<text relative='pos-in pos' rel-anchor='prev' top='0' left='-8' width='424'>
Open Blades of Exile is sustained by the hard work of passionate volunteers.
We sincerely hope you enjoy, share, and discuss this game, and maybe even make and release your own scenario!<br/>
Open Blades of Exile is a modification of Blades of Exile, created by Spiderweb Software, Inc. in 1997.
It is released under GNU GPL 2.0+. The source code can be found at https://github.com/calref/cboe/.
It is released under GNU GPL 2.0+. The source code can be found here:
</text>
<text top='273' left='60' width='353' height='66'>
Comments and questions? The creators and maintainers of Exile want to hear them.
Visit http://www.spidweb.com/, where you can find the official discussion forum and other great games!
<br/>Or open a ticket at https://github.com/calref/cboe/issues.
<text name= 'src' relative='pos-in pos' rel-anchor='prev' top='10' left='16' colour='link' underline='true'>
https://github.com/calref/cboe/
</text>
<button name='okay' type='regular' top='299' left='435'>OK</button>
<text relative='neg pos' rel-anchor='prev' top='0' left='16' width='353'>
Comments and questions? The maintainers of Open Blades of Exile want to hear them.<br/>
Open a ticket here:
</text>
<text name= 'issues' relative='pos-in pos' rel-anchor='prev' top='0' left='16' colour='link' underline='true'>
https://github.com/calref/cboe/issues
</text>
<button name='okay' relative='neg' type='regular' top='30' left='70'>OK</button>
</dialog>
23 changes: 14 additions & 9 deletions rsrc/dialogs/about-boe.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,21 +99,26 @@
<!-- Bandit Busywork -->The Almighty Doer of Stuff <br/>
</text>
</pane>
<text top='143' left='50' width='410' height='51'>
<text top='153' left='50' width='410' height='51'>
Blades of Exile is brought to you by Spiderweb Software - <br/>
"Where our aberrations become your reality." <br/>
"Blades of Exile" and Spiderweb Software are trademarks of Spiderweb Software.
</text>
<text top='195' left='50' width='424' height='145'>
Open Blades of Exile is brought to you from the hard work of volunteers who are passionate about this software.
<text relative='pos-in pos' rel-anchor='prev' top='0' left='-8' width='424'>
Open Blades of Exile is sustained by the hard work of passionate volunteers.
We sincerely hope you enjoy, share, and discuss this game, and maybe even make and release your own scenario!<br/>
Open Blades of Exile is a modification of Blades of Exile, created by Spiderweb Software, Inc. in 1997.
It is released under GNU GPL 2.0+. The source code can be found at https://github.com/calref/cboe/.
It is released under GNU GPL 2.0+. The source code can be found here:
</text>
<text top='273' left='60' width='353' height='66'>
Comments and questions? The creators and maintainers of Exile want to hear them.
Visit http://www.spidweb.com/, where you can find the official discussion forum and other great games!
<br/>Or open a ticket at https://github.com/calref/cboe/issues.
<text name= 'src' relative='pos-in pos' rel-anchor='prev' top='10' left='16' colour='link' underline='true'>
https://github.com/calref/cboe/
</text>
<button name='okay' type='regular' top='299' left='435'>OK</button>
<text relative='neg pos' rel-anchor='prev' top='0' left='16' width='353'>
Comments and questions? The maintainers of Open Blades of Exile want to hear them.<br/>
Open a ticket here:
</text>
<text name= 'issues' relative='pos-in pos' rel-anchor='prev' top='0' left='16' colour='link' underline='true'>
https://github.com/calref/cboe/issues
</text>
<button name='okay' relative='neg' type='regular' top='30' left='70'>OK</button>
</dialog>
13 changes: 12 additions & 1 deletion src/game/boe.actions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,18 @@ void show_dialog_action(std::string xml_file) {
if(recording){
record_action("show_dialog_action", xml_file);
}
cChoiceDlog(xml_file).show();

cChoiceDlog dlog(xml_file);

// Dialogs with hyperlinks need special handling:
if(xml_file == "about-boe"){
dlog->attachClickHandlers([](cDialog& self, std::string clicked, eKeyMod) {
launchURL(self[clicked].getText());
return false;
}, {"src", "issues"});
}

dlog.show();
}

bool prime_time() {
Expand Down

0 comments on commit 59363d8

Please sign in to comment.