model browser invisible

Any aspects of level design for the Source engine.

model browser invisible

Postby gallauco on Fri Nov 05, 2010 8:55 pm

I sense it has something to do with my recent dual screen setup, but don't ask me how..

now, when I click to open the model browser it seems to open but the window doesn't show up. the problem is that you can't operate in hammer without closing the model browser, so I'm stuck.
Is there something like a reset for hammer options? I mean something that doesn't reset also all my mods' settings.

very annoying!
gallauco
Regular
Regular
 
Joined: Fri Nov 28, 2008 7:05 pm

Re: model browser invisible

Postby omnicoder on Fri Nov 05, 2010 9:54 pm

I'm bored so I wrote a quick program for you that lets you select a window by title and moves it to 0,0.
Download

Image

Source code:
Code: Select all
public partial class Main : Form
    {
        public Main()
        {
            InitializeComponent();
        }

        private void Main_Load(object sender, EventArgs e)
        {
            GetOpenWindows();
        }

        private void GetOpenWindows()
        {
            //Horrible LINQ hackery
            foreach (SystemWindow m in SystemWindow.AllToplevelWindows.Where<SystemWindow>
                ((SystemWindow g) => {
            if (g.Visible) treeView1.Nodes.Add(g.Title + "[" + g.HWnd.ToString() + "]").Tag = g.HWnd; return false;
                })) { }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            treeView1.Nodes.Clear();
            GetOpenWindows();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            SetWindowPos((IntPtr)treeView1.SelectedNode.Tag, IntPtr.Zero, 0, 0, -1, -1, 5);
        }
       
        [DllImport("user32.dll")]
        private static extern bool SetWindowPos(HWND hWnd,HWND hWndInsertAfter,int X,int Y,int cx,int cy, uint uFlags);
    }
Image
If only the future implemented IForeseeable...
"whats threading? does it have to do with strings?" - stegarootbeer
User avatar
omnicoder
Been Here A While
Been Here A While
 
Joined: Sun Feb 07, 2010 8:35 am

Re: model browser invisible

Postby gallauco on Fri Nov 05, 2010 10:26 pm

Thanks man, you're very kind!
I've upgraded steam and all, causing the reset of my settings, just to remember the almighty ALT+SPACE combo that unleashes the secret power to move hidden windows! Shame on me :)

..if you're really bored I may hire you for some very boring mod coding duties ;) and I know I'd make a good affair 'cause I see your name listed in a lots of mods ;) ...or are you just trying to sabotage as more mods as possible in a evil scheme of yours??

Then again, thanks!
gallauco
Regular
Regular
 
Joined: Fri Nov 28, 2008 7:05 pm

Re: model browser invisible

Postby Mr. Happy on Sat Nov 06, 2010 4:10 pm

AWESOME I needed something like this too
Image
-You've just been happified!?
User avatar
Mr. Happy
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Sat Dec 30, 2006 9:20 am
Location: Flyin' thru "da cloud" in the MotherShip

Return to Hammer Editor Help

Who is online

Users browsing this forum: No registered users

cron