Oh - no that has no effect on compile.
Announcement
Collapse
No announcement yet.
Inventory Demo
Collapse
X
-
This is maybe a stupid question, but how do you debug your unrealscriptclasses of gfx ?
I tried to use log and ClientMessage but they give errors.
Edit: looks like 'log works.
Edit2: I want to let my hud be floating above a pawn in third person. is the best way to make a material with the swf and assign it to a plane that I link to the pawn or is there a better method?
Comment
-
I am a bit stuck on this so srry for the double post.
Like you suggested I looked at those classes and I have now written my own class. But I couldnt get the effect what I wanted. Like you can see here.
The problem here is that the UI is always in front of the playercamera while I want that the UI will be above a charackter in front of me. Floating above his head. The good thing is that here the UI gets the mouseinput. So that works well.
I wanted to solve the problem of the UI that has to float above a player. So I tried to assign a material with a rendertotexture2d to a plane. Like you can see here the UI is visible but the colors are gone and there is no mouseinput.
I already edited in kismet the property "Take Focus" and "Capture Input" of the Open GFx Movie node. But nothing happens.
Could you help me a bit pleas ?
Comment
-
I'm not familiar with how to do this, otherwise I'd offer some pointers. I do believe that capture input and take focus seem kind of broken in September UDK in Kismet. If you have capture input set to true, that movie will capture input no matter where you are in the level.
I believe the way we did 3D inventory window in the previous builds (window rendered behind player gun) was with some modifications that no longer exist in the new builds. So in order to find out how we did it, I'll need to dig around in an older version. Unfortunately, I don't have the time to do that right now.
I do know you can capture mouse input from UnrealScript as well. Some default properties to consider when doing something like this include:
Code:defaultproperties { bIgnoreMouseInput=FALSE // this determines whether the mouse is captured or not bPauseGameWhileActive=TRUE // do you want your game paused when this is open? bCaptureInput=TRUE bDisplayWithHudOff = TRUE // do you want the HUD displayed while this is open? }
Comment
-
Thanks Matt. Sorry for the insane delay.
I was using flash CS3 and kept getting "unexpected file format" when trying to open up some of those resources. I just upgraded to flash 8 pro, but the same thing is still happening. Does this sound like a compatibility issue or am i missing something?
Comment
-
How would one go about equipping an item in-game, such as armor, when the icon has been dragged to the slot(armor dragged to armor slot). I have looked the InventoryDemo over and over and can't make out a function that can allow me to do this.
I believe that this code is responsible for making this occur,
Code:dragBtn.onPress = function() { this._parent.startDrag(); // not sure why onMouseUp doesn't work here. this.onRelease = this.onReleaseOutside = function() { this._parent.stopDrag(); delete(this.onRelease); delete(this.onReleaseOutside); } }
Also, how can this code be referenced by UnrealScript?
Comment
Comment