[RELEASE] Announcement Box
I was bored, sue me.
Add this to CharSelection.xml inside Default.mrs
Code:
<PICTURE item="Announcement_Box" parent="CharSelection">
<BOUNDS>
<X>200</X>
<Y>80</Y>
<W>400</W>
<H>200</H>
</BOUNDS>
<STRETCH/>
<BITMAP>blacknullframe.tga</BITMAP>
</PICTURE>
<LABEL item="Annoucement_Text_01" parent="Announcement_Box">
<FONT>FONTb11b</FONT>
<TEXTCOLOR>
<R>255</R>
<G>255</G>
<B>255</B>
</TEXTCOLOR>
<BOUNDS>
<X>210</X>
<Y>90</Y>
<W>380</W>
<H>24</H>
</BOUNDS>
<TEXT>STR:ANNOUNCE_01</TEXT>
</LABEL>
<LABEL item="Annoucement_Text_02" parent="Announcement_Box">
<FONT>FONTb11b</FONT>
<TEXTCOLOR>
<R>255</R>
<G>255</G>
<B>255</B>
</TEXTCOLOR>
<BOUNDS>
<X>210</X>
<Y>115</Y>
<W>380</W>
<H>24</H>
</BOUNDS>
<TEXT>STR:ANNOUNCE_02</TEXT>
</LABEL>
<LABEL item="Annoucement_Text_03" parent="Announcement_Box">
<FONT>FONTb11b</FONT>
<TEXTCOLOR>
<R>255</R>
<G>255</G>
<B>255</B>
</TEXTCOLOR>
<BOUNDS>
<X>210</X>
<Y>140</Y>
<W>380</W>
<H>24</H>
</BOUNDS>
<TEXT>STR:ANNOUNCE_03</TEXT>
</LABEL>
<LABEL item="Annoucement_Text_04" parent="Announcement_Box">
<FONT>FONTb11b</FONT>
<TEXTCOLOR>
<R>255</R>
<G>255</G>
<B>255</B>
</TEXTCOLOR>
<BOUNDS>
<X>210</X>
<Y>165</Y>
<W>380</W>
<H>24</H>
</BOUNDS>
<TEXT>STR:ANNOUNCE_04</TEXT>
</LABEL>
<LABEL item="Annoucement_Text_05" parent="Announcement_Box">
<FONT>FONTb11b</FONT>
<TEXTCOLOR>
<R>255</R>
<G>255</G>
<B>255</B>
</TEXTCOLOR>
<BOUNDS>
<X>210</X>
<Y>190</Y>
<W>380</W>
<H>24</H>
</BOUNDS>
<TEXT>STR:ANNOUNCE_05</TEXT>
</LABEL>
<LABEL item="Annoucement_Text_06" parent="Announcement_Box">
<FONT>FONTb11b</FONT>
<TEXTCOLOR>
<R>255</R>
<G>255</G>
<B>255</B>
</TEXTCOLOR>
<BOUNDS>
<X>210</X>
<Y>215</Y>
<W>380</W>
<H>24</H>
</BOUNDS>
<TEXT>STR:ANNOUNCE_06</TEXT>
</LABEL>
<LABEL item="Annoucement_Text_07" parent="Announcement_Box">
<FONT>FONTb11b</FONT>
<TEXTCOLOR>
<R>255</R>
<G>255</G>
<B>255</B>
</TEXTCOLOR>
<BOUNDS>
<X>210</X>
<Y>240</Y>
<W>380</W>
<H>24</H>
</BOUNDS>
<TEXT>STR:ANNOUNCE_07</TEXT>
</LABEL>
Then add this to strings.xml inside system.mrs
Code:
<!-- Announcements -->
<STR id="ANNOUNCE_01"></STR>
<STR id="ANNOUNCE_02"></STR>
<STR id="ANNOUNCE_03"></STR>
<STR id="ANNOUNCE_04"></STR>
<STR id="ANNOUNCE_05"></STR>
<STR id="ANNOUNCE_06"></STR>
<STR id="ANNOUNCE_07"></STR>
Why? So you can announce updates to your populace, or tell people what not to do, or just have a nice banner at the beginning of your server. The reason I used strings.xml is so that you don't have to update default.mrs every time you want to change the announcements. I haven't tested this out yet but if I did my math correctly I created all the bounds fairly well. I believe you can use ^# codes, but don't hurt me if I'm wrong.
I think this could be better, but for only spending 10 minutes making it, I think its fine.
Re: [RELEASE] Announcement Box
Re: [RELEASE] Announcement Box
Any screenshot or something? I don't really know how it looks but as I know, there'll be a...box?
Re: [RELEASE] Announcement Box
Quote:
Originally Posted by
7-Eleven
Any screenshot or something? I don't really know how it looks but as I know, there'll be a...box?
I don't have a local pserver to test it on, was actually hoping a brave soul would test it for me before I put it out live on my server ;), sok though, I'll put it live on mine tonight after I finish this patch up X_X
I think I'm going to upgrade it if it works the way I think it will. I'll make it similar to the lobby chat where your able to scroll up and down with multiple lines, so you can have a news reel of updates if you want.
Re: [RELEASE] Announcement Box
I always wanted to mess with the default.mrs. (Thinking of making a visual editor for it.)
Hymn maybe you should post a nice elaborated tutorial on it =).
ON TOPIC: Nice idea, never would have thought of it.
Re: [RELEASE] Announcement Box
Wow, I wanted this for a long time and was looking for it everywhere.
Very nice release!
This is like the announcement boxes on LG when Gunner54 hacked it! :smile:
Re: [RELEASE] Announcement Box
nice i will try as once i have time to add it=]
Re: [RELEASE] Announcement Box
Re: [RELEASE] Announcement Box
Re: [RELEASE] Announcement Box
Re: [RELEASE] Announcement Box
Re: [RELEASE] Announcement Box
Made a screen of it..
but this thing made my client freeze for like 10 / 20 secs
Note : I just added random spam the the strings..
i think i need some images o.0
(didnt check):P
http://img366.imageshack.us/img366/8338/gunz046di9.jpg
Re: [RELEASE] Announcement Box
@shadow
how you encrypt ur files .mrs?
Re: [RELEASE] Announcement Box
Re: [RELEASE] Announcement Box
haha, well it looks like I'm going to have to revise how that works :P
Thanks for the test!
notes:
1. for some reason it keeps the same dimensions regardless of the size of the screen, but doesn't scale the dimensions from the original 800x600 screen.
2. Why is the text so far to the right o_o
3. Why did it put it on the lobby screen lol, are you sure you added it to the right screen?