Pureon Posted July 1, 2012 Report Share Posted July 1, 2012 And if there's no preview image, something as simple as this will do:http://i173.photobucket.com/albums/w73/purepics/0ADRandomMap03.jpg Quote Link to comment Share on other sites More sharing options...
wraitii Posted July 1, 2012 Report Share Posted July 1, 2012 I'm following Mythos on this one, and Pureon, it looks better to me too. Quote Link to comment Share on other sites More sharing options...
historic_bruno Posted July 1, 2012 Report Share Posted July 1, 2012 Here's what I'm thinking:http://i173.photobuc...RandomMap02.jpgThat's not 1024x768 It gives me an idea though. To help fill in the empty space on larger displays, we could expand the map preview and description -- the right side of that mockup, instead of only the player assignment area (as it is now). And if we resize the player assignment area, let's make sure it's not all aligned to the left, but the extra space is evenly distributed per column. Quote Link to comment Share on other sites More sharing options...
Pureon Posted July 1, 2012 Report Share Posted July 1, 2012 That's not 1024x768 It gives me an idea though. To help fill in the empty space on larger displays, we could expand the map preview and description -- the right side of that mockup, instead of only the player assignment area (as it is now). And if we resize the player assignment area, let's make sure it's not all aligned to the left, but the extra space is evenly distributed per column. I was only 'designing' the preview image box, not the overall layout of the page, so wasn't focusing on any particular resolution. The preview image should not scale, so I don't know how the right column would expand? Quote Link to comment Share on other sites More sharing options...
Spahbod Posted July 2, 2012 Author Report Share Posted July 2, 2012 I have no objections then. When shall I commit the new ui?Note: The engine sketches the preview image if it doesn't fit the whole thing. That means that it is not necessary to have a preview exactly at the same size.That's not 1024x768 It gives me an idea though. To help fill in the empty space on larger displays, we could expand the map preview and description -- the right side of that mockup, instead of only the player assignment area (as it is now). And if we resize the player assignment area, let's make sure it's not all aligned to the left, but the extra space is evenly distributed per column.I sketched the player assignment area. How do you think? Quote Link to comment Share on other sites More sharing options...
Potter Posted July 2, 2012 Report Share Posted July 2, 2012 i like it. It is in the right direction!Now that we have some extra space...Are we going to start distinguishing between the different types of maps: like scenarios, random maps, etc - maybe with a dropdown above the map preview? Quote Link to comment Share on other sites More sharing options...
Spahbod Posted July 2, 2012 Author Report Share Posted July 2, 2012 They are already distinguished. The dropdown appears when you click on the "select map" button. Quote Link to comment Share on other sites More sharing options...
Mythos_Ruler Posted July 3, 2012 Report Share Posted July 3, 2012 What size do the preview images need to be? Quote Link to comment Share on other sites More sharing options...
historic_bruno Posted July 3, 2012 Report Share Posted July 3, 2012 What size do the preview images need to be?They need to be power-of-two like all our other textures, correct? Quote Link to comment Share on other sites More sharing options...
historic_bruno Posted July 3, 2012 Report Share Posted July 3, 2012 I have no objections then. When shall I commit the new ui?I'd like to play around with it and see if I can break anything I'll try to test it tonight Quote Link to comment Share on other sites More sharing options...
Mythos_Ruler Posted July 3, 2012 Report Share Posted July 3, 2012 They need to be power-of-two like all our other textures, correct?Yeah, so I'm guessing 512x512 would suffice. There is the issue that the actual "preview" in the UI is not a square. Will it be centered or taken from the top or what? Thanks. Quote Link to comment Share on other sites More sharing options...
Spahbod Posted July 3, 2012 Author Report Share Posted July 3, 2012 The preview should be something like 400x300 (Or more specifically, 398x298) or the game will sketch it to that size.I'd like to play around with it and see if I can break anything I'll try to test it tonightgamesetup.zipThis one is a little tricky. Should go to "art/textures/ui/icons/session/mappreview/"mappreview.zip Quote Link to comment Share on other sites More sharing options...
historic_bruno Posted July 3, 2012 Report Share Posted July 3, 2012 400x300 is not power of two The textures really need to be powers of two in each dimension or it causes problems with some drivers/GPUs. Quote Link to comment Share on other sites More sharing options...
Spahbod Posted July 3, 2012 Author Report Share Posted July 3, 2012 So we can sketch a 400x300 into a 512x512 and then the gui engine will sketch it back to 400x300. But I should say that almost none of the gui images are power of 2. Quote Link to comment Share on other sites More sharing options...
historic_bruno Posted July 3, 2012 Report Share Posted July 3, 2012 I think almost every texture we have is power of two I found one that isn't and should be fixed: art\textures\ui\session\portraits\emblems\emblem_athens.png (128x125)I agree that all we have to do is stretch them before and after. Atlas could do that automatically if we integrate the preview capturing with it. Quote Link to comment Share on other sites More sharing options...
Mythos_Ruler Posted July 3, 2012 Report Share Posted July 3, 2012 How about the hypothetical "preview image" feature in Atlas take a 400x300 screenshot and put it on a 512x512 file. Quote Link to comment Share on other sites More sharing options...
luziferius Posted July 3, 2012 Report Share Posted July 3, 2012 just put it into the upper left corner and fill the rest with transparency(or whatever).when using a compressing image format it (almost) won’t use any more disk space Quote Link to comment Share on other sites More sharing options...
Mythos_Ruler Posted July 3, 2012 Report Share Posted July 3, 2012 just put it into the upper left corner and fill the rest with transparency(or whatever).when using a compressing image format it (almost) won’t use any more disk spaceRight. That's basically what I meant. Quote Link to comment Share on other sites More sharing options...
Spahbod Posted July 4, 2012 Author Report Share Posted July 4, 2012 For that, the code needs to be lightly modified. Quote Link to comment Share on other sites More sharing options...
historic_bruno Posted July 4, 2012 Report Share Posted July 4, 2012 The preview should be something like 400x300 (Or more specifically, 398x298) or the game will sketch it to that size.gamesetup.zipThis one is a little tricky. Should go to "art/textures/ui/icons/session/mappreview/"mappreview.zipIt's broken at 1024x768, all the controls overlap Also I hate having to move from one side of the screen to the other for related actions, in this case opening the map selection is on the right, choosing a map is on the left, then you have to move back to the right to OK it. (Especially annoying at 1920x1080) Quote Link to comment Share on other sites More sharing options...
Spahbod Posted July 4, 2012 Author Report Share Posted July 4, 2012 Is there a way to find the resolution of the page?And for the second problem, I'll try swapping the locations of options and map selection. Any thoughts? Quote Link to comment Share on other sites More sharing options...
historic_bruno Posted July 4, 2012 Report Share Posted July 4, 2012 Is there a way to find the resolution of the page?Don't think so. The best thing is probably to design something that looks good at 1024x768 (easy to test with windowed mode, default.cfg or user.cfg can be set with yres/xres) and then just stretch things for higher resolution, distributing the extra space. It doesn't allow some fancy behavior but it mostly works Quote Link to comment Share on other sites More sharing options...
Spahbod Posted July 4, 2012 Author Report Share Posted July 4, 2012 gamesetup.zipI like the new version more than the previous one. Works perfectly in 1024x768. Check it yourself. Quote Link to comment Share on other sites More sharing options...
Zeta1127 Posted July 4, 2012 Report Share Posted July 4, 2012 The latest version works great, except I can't get the map preview to work right. Quote Link to comment Share on other sites More sharing options...
Spahbod Posted July 4, 2012 Author Report Share Posted July 4, 2012 The latest version works great, except I can't get the map preview to work right.If it is pink, download and install the "mappreview.zip" from this post:http://www.wildfiregames.com/forum/index.php?showtopic=16206&st=80#entry243767 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.