Changeset 44

Show
Ignore:
Timestamp:
01/26/07 01:23:13 (2 years ago)
Author:
baxissimo
Message:

Added prepend_resource_location

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/luigi/gui.d

    r43 r44  
    121121        if (workp[$-1..$] != std.path.sep) { workp ~= std.path.sep; } 
    122122        m_resource_path ~= workp; 
     123    } 
     124    /// Add a location where themes should look for resource files to the beginning of 
     125    /// the resource path. 
     126    /// (e.g. images, textures, etc.  The built-in themes look for some files  
     127    /// relative to the luigi base directory, so you may need to add it to 
     128    /// your path.)  The current directory '.' is the only thing on the resource path 
     129    /// by default. 
     130    void prepend_resource_location(char[] path) { 
     131        char[] workp = path.dup; 
     132        if (workp[$-1..$] != std.path.sep) { workp ~= std.path.sep; } 
     133        m_resource_path = workp ~ m_resource_path; 
    123134    } 
    124135    /// Get the current resource path.  This is a list of paths where Luigi