Jump to content

My First Menue


fumanshoo
 Share

Recommended Posts

I thought this might work, but it's not...

 

menueMaterial = LoadMaterial("abstract::Menue.mat")
menue = DrawImage(menueMaterial,0,0,1,1)
on = 1
if KeyDown(Key_U)==1 then
 DrawImage(menueMaterial,1,1,1,1)
 if on== 1 then
  DrawImage(menueMaterial,1,1,1,1)
  on = 0
else
 FreeEntity(menue)
  on = 1
 end
end

Link to comment
Share on other sites

a material is not a texture... and the size of that image being drawn is essentially only 1 pixel with the values you are using... see DrawImage for details

 

and dont free the image if you expect to see/use it again, just dont draw the image.

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Link to comment
Share on other sites

Hey, I hope this will help you to draw your menu

 

Graphics(800, 600)
fw = CreateFramework()
camera = fw.main.camera
pausefunc = 0
AppTerminate = 0
while AppTerminate ==0 do
if KeyHit(KEY_ESCAPE) == 1 then

 --sets pause to 1 and opens up the pause screen
 pausefunc = 1
 function FlipHook()
  --if it applies to 1 the screen gots open
  if pausefunc == 1 then
   SetBlend(1)
						    menu =  LoadTexture("abstract::menu.dds")
						    DrawImage(menu, X, Y, Width, Height)
						    SetBlend(0)
  else
   --add stuff here
  end
 end
end

   fw:Update()
   fw:Render()
   Flip(0)

end

 

you need to add your own stuff to this but it's an start...

 

Cheers

Link to comment
Share on other sites

Yes, as soon as I get a chance, I will post it on the finished menu on the gallery. I will most likely be done by the end of this week. If you are familiar with the Dead Space games, Star Wars or holographs in general, you can get a feel for what the menu looks like.

 

... also, I was copy/pasting an incorrectly spelled "menue" through my entire program and I just noticed haha, sorry about that...

Link to comment
Share on other sites

Oh sorry, Dead Space 2. You know how the holographs kind of hang to the side and what not? I'm hoping to kind of offset it from my character to make it look like she pulled it up on a little projector and then zoom in to full screen... kinda hard to describe, but it will make sense when it is finished. My goal for this week is to make a light house ( just need a few more textures ) and make a menu layout.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...