Jump to content
The Dark Mod Forums

Customisable Interface


Recommended Posts

On a similar note: Do we still need the splitplane view?

Otherwise the window management would be a bit easier, as there are lot of if clauses involved to determine which window can be toggled and which can not.

 

My personal preference would be to ditch it, but some people like it (I think Crispy preferred it, for instance). With that in mind I think we should keep it unless we can provide an interface which is universally accepted as preferable.

Link to comment
Share on other sites

Whoopsie, just realised that I get a crash after closing one of the newly created xy views. I'm off to investigate this...

 

edit: Damn, the crashing call is hidden somewhere. Orbweaver, could you give me a hint, where the crash is happening? Perhaps it is some GTK-related crash with some widget still referenced?

 

edit2: I think I already have a trace, stay tuned.

Link to comment
Share on other sites

I've learned now that it is bad to return true in an GTK "delete-event" callback. And there were some problems with the XYWnd destructor dereferencing its GLWidget instead of hiding it. This way my destroyOrthOView() method could not destruct them anymore.

Link to comment
Share on other sites

I've learned now that it is bad to return true in an GTK "delete-event" callback. And there were some problems with the XYWnd destructor dereferencing its GLWidget instead of hiding it. This way my destroyOrthOView() method could not destruct them anymore.

 

I've encountered both of those, in one situation or another. Singleton dialogs which should be hidden but get destroyed will give you an error like "GTK_IS_WIDGET failed" next time you try to open them; returning the wrong value from a callback may do all sorts of things if other events should be called but don't anymore.

Link to comment
Share on other sites

The nice thing about the split pane view is that you don't need to faff around with windows as much. None of the views can ever overlap each other, so all you need to worry about is moving the other tool windows out of the way (or you can just close them since they're easily re-opened).

 

I have a couple of friends who wrote their own window manager for Linux that works on a tiling basis (most of the time - you can also "float" windows, so that they behave as they normally do in most windowing systems). They swear by it, and I can see their point. One day I'll probably end up using it myself. :) (Just like one day I'm going to ditch Windows for everyday stuff...)

My games | Public Service Announcement: TDM is not set in the Thief universe. The city in which it takes place is not the City from Thief. The player character is not called Garrett. Any person who contradicts these facts will be subjected to disapproving stares.
Link to comment
Share on other sites

The quad-split one looks the most useful to me. From a personal preference point of view, I can't really see the point of the other two.

 

OTOH, some people may use it - and if you're going to have to support one fixed layout, is it really any more work to support the others? Might as well leave it in.

My games | Public Service Announcement: TDM is not set in the Thief universe. The city in which it takes place is not the City from Thief. The player character is not called Garrett. Any person who contradicts these facts will be subjected to disapproving stares.
Link to comment
Share on other sites

On SVN: the XY view window sizes and positions are now saved into the XMLRegistry and restored on Radiant startup.

 

Still to come: Make the camwindow use the new WindowPosition class and dump the legacy code from window.h.

Link to comment
Share on other sites

  • 2 weeks later...

I committed another fix for the "feature" that caused XYViews to stay on top even if the main window got minimised. The original GtkRadiant code did implement this and I took the relevant part and packed it into the TransientWindow class.

Link to comment
Share on other sites

Now on SVN: the user can edit the shortcut/command associations directly in DarkRadiant:

 

shortcutchooser9ec.th.png

 

Just double click on any of the commands and press the new shortcut. An "overwrite" confirmation dialog is shown if the shortcut is already in use by another command.

Link to comment
Share on other sites

I've added another functionality to the MouseEventManager: if the user is holding down a modifier, the possible mouse events (Zoom, Toggle Selection, etc.) are shown in the lower left status bar, like this:

 

statustextcommandlist0ce.th.jpg

 

I also changed the status bar updater in mainframe.cpp to accept pango markups, so that the status texts can be properly formatted.

Link to comment
Share on other sites

I've committed a first draft of a plugin that should handle the orthoview image overlays. It's not functional yet, should I stop working on it till 0.8.0 is released or should we just omit shipping the dll with the package? It's not relied upon by the main code at the moment.

Link to comment
Share on other sites

I suggest committing into a branch for the time being, so that 0.8.0 can be built from the trunk and the new changes merged in later.

 

If you haven't used a branch before in SVN, it is quite easy - you just choose the "Branch/Tag" menu option (in Eclipse or Tortoise, the dialog is almost identical), then enter a URL underneath the branches/ top-level folder, choose "From Working Copy" and tick the option to "Switch to new branch". Then all of your subsequent commits are made into this branch.

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.

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.

  • Recent Status Updates

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 3 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...