
voc{ news

: news-off? gstats{ newschecked } BRANCHNAME $= ;

// TITLE INFO

		($ "精神续作" .. cr$ .. "并且可以线上联机" $) news_title!

// NEWSBOX IMAGE INFO

9 value imagecount
3 sec>tick newsbox_ticker_dur!

// BUTTONS INFO

"现在观看 宣传片 + 愿望单! [Steam]" value b0_text
"http://www.spacedingus.com" urlopener: b0_url

"官方Discord" value b1_text
"https://discord.gg/z6bjr6MKbK" urlopener:  b1_url

"新闻选项" value b2_text


0 value index

: ticker_handler
	($ "deathforth/news/" .. index .. ".png" $) newsbox_load_image

	' index ++ index imagecount % to index
;

last newsbox_ticker_handler!


b0_text		0 #news_btn_text!
' b0_url	0 #news_btn_handler!
b1_text 	1 #news_btn_text!
' b1_url	1 #news_btn_handler!
b2_text 	2 #news_btn_text!

"http://www.twitter.com/rocketcatgames/" 	urlopener: rocketcat-twitter
"http://www.facebook.com/rocketcatgames/" 	urlopener: rocketcat-facebook
"http://www.twitter.com/madgarden/" 		urlopener: madgarden-twitter

: show-news 
	gstats{ 0 to newschecked save }
	0 newsbox_disable!
	0 0 #news_btn_disable!
	0 1 #news_btn_disable!
	0 2 #news_btn_disable!

	1 refresh_layout!
;

: hide-news 
	gstats{ BRANCHNAME to newschecked save }
	// 0 news_enable!

	1 newsbox_disable!
	1 0 #news_btn_disable!
	0 1 #news_btn_disable!
	0 2 #news_btn_disable!

	1 refresh_layout!
;

cyoa{

cyoa-blank: social
	"TWITTER 和 FACEBOOK" cyoa-title!

	"在推特或脸书上阅读Rocketcat Games的更新, 了解死亡之路新闻和即将到来的游戏! 
阅读Madgarden的推特, 了解真正的加拿大智慧!" bbold text!
	"我们很快就可以在推特上回复反馈和建议!" +crtext

	choice( "返回" )choice
	choice( "Rocketcat的推特" )choice: rocketcat-twitter
	choice( "Madgarden的推特" )choice: madgarden-twitter
	choice( "Rocketcat的脸书" )choice: rocketcat-facebook

;

cyoa-blank: weblinks
	"新闻选项" cyoa-title!

	"以下是更多联系我们的方式, 提供反馈和建议, 并查看我们的更新和新项目! 
我们在官方Rocketcat Discord上非常活跃, 在那里你可以与我们和我们游戏的其他粉丝交谈." bbold text!
	"你也可以直到下一次重大更新前隐藏新闻面板." +crtext

	choice( "返回" )choice
	choice( "推特/脸书" )choice: social
	choice( "Rocketcat的官方Discord" )choice: b1_url
	news-off? if 
		choice( "显示新闻" )choice: show-news
	else
		choice( "隐藏新闻" )choice: hide-news
	then
;
	
}

last 2 #news_btn_handler!

: newschecker
	1 news_enable! // Changing this to 0 shuts off news AND other stuff

	news-off? if hide-news then;
	
	show-news
	
	// Uncomment below to hide news but not hide the news options and Discord buttons
	// I typically uncomment this if we haven't had a new update in awhile
	// NOTE: Need to manually set 0 to newschecked if I work on update before wanting to show news again
	// hide-news
	
;

newschecker

}
