Jeck - Final theme updates. Reverted backdrop.jpg to 255H, expanded wood.png to 32H, though only 28 are used (to prevent gray box issue). Also minor change to OptionItem.cpp so that themeinfo.txt loads on Default theme.
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 25 KiB |
16
projects/mtg/bin/Res/graphics/themeinfo.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
Wagic Team
|
||||
|
||||
Default Theme Credits:
|
||||
* Our awesome phase bar and shop background are courtesy of Jhotun! Check out his work at www.jhotun.com!
|
||||
* The eboot background, card back, logo, large card templates, and manual were contributed by Jeck.
|
||||
* The default player's avatar is courtesy of http://mathieuchoinet.blogspot.com, under CC License.
|
||||
* Other images are courtesy of J, who also does most of our gui coding. Thanks, J!
|
||||
* The duel backdrop is from the KDE project, www.kde.org
|
||||
|
||||
|
||||
Notes on themes:
|
||||
This is themeinfo.txt. The first line should contain theme authorship information, but the rest is free to use any way you'd like.
|
||||
|
||||
To build a theme, copy any file from the res/graphics/ directory to a directory just like this one. Then comes the fun part... edit it, save it, and load it up in Wagic. Be sure to include a 227*128 pixel "preview.png" to show off your new theme in options menu!
|
||||
|
||||
You can also replace card images! Just place your new card picture in the same place it would be under the sets directory. Be careful, though, as you can't use zipped card images in themes. For example, to replace 10th Edition's Demystify in "My Theme", use a file like this: "themes/my theme/sets/10E/129524.jpg"
|
||||
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 15 KiB |
3
projects/mtg/bin/Res/themes/Inverted/themeinfo.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
Wagic Team
|
||||
|
||||
Check out themeinfo.txt in the graphics directory for more information on making themes!
|
||||
|
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 52 KiB |
5
projects/mtg/bin/Res/themes/Jade/themeinfo.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
Wagic Team
|
||||
|
||||
Credit goes to Jeck for the Jade backdrop. Pretty nifty, huh?
|
||||
|
||||
Check out themeinfo.txt in the graphics directory for more information on making themes!
|
||||
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 31 KiB |
@@ -6,7 +6,7 @@ GuiBackground::GuiBackground()
|
||||
{
|
||||
JTexture* texture = resources.GetTexture("backdrop.jpg");
|
||||
if (texture)
|
||||
quad = NEW JQuad(texture, 0, 0, 480, 272);
|
||||
quad = NEW JQuad(texture, 0, 0, 480, 255);
|
||||
else
|
||||
{
|
||||
quad = NULL;
|
||||
@@ -22,5 +22,5 @@ GuiBackground::~GuiBackground()
|
||||
void GuiBackground::Render()
|
||||
{
|
||||
JRenderer* renderer = JRenderer::GetInstance();
|
||||
renderer->RenderQuad(quad, 0, 0);
|
||||
renderer->RenderQuad(quad, 0, 18);
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
GuiFrame::GuiFrame()
|
||||
{
|
||||
if (resources.GetTexture("wood.png"))
|
||||
wood = resources.RetrieveQuad("wood.png", 0, 0, SCREEN_WIDTH, 16);
|
||||
wood = resources.RetrieveQuad("wood.png", 0, 0, SCREEN_WIDTH, 28);
|
||||
else
|
||||
{
|
||||
wood = NULL;
|
||||
|
||||
@@ -677,7 +677,10 @@ void OptionTheme::Render(){
|
||||
if(!bChecked){
|
||||
author = "";
|
||||
bChecked = true;
|
||||
sprintf(buf,RESPATH"/themes/%s/themeinfo.txt",selections[value].c_str());
|
||||
if(selections[value] == "Default")
|
||||
sprintf(buf,RESPATH"/graphics/themeinfo.txt");
|
||||
else
|
||||
sprintf(buf,RESPATH"/themes/%s/themeinfo.txt",selections[value].c_str());
|
||||
std::ifstream file(buf);
|
||||
if(file){
|
||||
string temp;
|
||||
|
||||