Skip to content

Commit

Permalink
[release] v1.0
Browse files Browse the repository at this point in the history
- Fixed NEWS tab
- Added HTML Render support
- Changed background color to black
- Customizable News Server Source
  • Loading branch information
Vel-San committed May 12, 2020
1 parent f1f4ad0 commit 52d3fd2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions KFMOTD.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[KFGui.KFMOTD]
# This is where the HTML News page is hosted at. To create your own page, you need to go here
# https://pastebin.com/YZar5TAb And follow the exact format. No JS Scripts or others, just use HTML structure like that
# Then page ID (from your address bar) in place of only 'YZar5TAb'
getRequest="GET /raw/YZar5TAb HTTP/1.1"
# This will show at the top of the panel like this 'News Source: TRIPWIRE INTERACTIVE'
newsSource="TRIPWIRE INTERACTIVE"
4 changes: 3 additions & 1 deletion KFMOTD.uc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var String myMOTD;
// Values from Vel-San
var String mutByMsg;
var() globalconfig String getRequest;
var() globalconfig String newsSource;
var automated GUIHTMLTextBox HTMLText;
///////////////////////

Expand All @@ -27,6 +28,7 @@ function InitComponent(GUIController MyController, GUIComponent MyOwner)

GetNewNews();
HTMLText.SetContents(myMOTD);
PanelCaption="News source: "$newsSource;
}

event Opened(GUIComponent Sender)
Expand Down Expand Up @@ -240,7 +242,7 @@ defaultproperties
l_Version=GUILabel'KFGui.KFMOTD.VersionNum'

VersionString="KF Version"
PanelCaption="News from Tripwire Interactive"
PanelCaption="News source: TRIPWIRE INTERACTIVE"

b_QuickConnect=None

Expand Down

0 comments on commit 52d3fd2

Please sign in to comment.