View Single Post
Antithasys
Moderator
Join Date: Apr 2008
Old 08-31-2011 , 17:30   Re: ScrollingRules
Reply With Quote #3

The hardcoded array used to display the rules is very odd indeed. While it is necessary to know the name of the translation file, using a scheme would appear appropriate here, and it looks like you already made one.

"RuleX" can be used. This would make the rule count almost unlimited. Since the phrases file is just a KV file, the number of sections could easily be read into a global variable and all you to append the "RuleX" string to continually get the next rule in a loop. Or something, this is just off the top of my head.
__________________
[my plugins]

When you think about asking a question... consider what have you tried?
Antithasys is offline