Naev

Module portrait

Functions for handling portraits in Naev.

Note that this is mainly a transitional package and is deprecated. Use vnimage when possible instead.

[[

Functions

getMale ([faction="neutral"]) Choose a random male civilian portrait.
getFemale ([faction="neutral"]) Choose a random female civilian portrait.
get ([faction="neutral"]) Choose a random civilian portrait of any gender.
getMaleMil ([faction="neutral"]) Choose a random male military portrait.
getFemaleMil ([faction="neutral"]) Choose a random female military portrait.
getMil ([faction="neutral"]) Choose a random military portrait of any gender.
getFullPath (str) Gets the full path of a portrait relative to the data directory.


Functions

getMale ([faction="neutral"])
Choose a random male civilian portrait.

Parameters:

  • faction string Name of faction to get a portrait for, or nil for neutral. (default "neutral")

Usage:

    misn.setNPC( "Sam", getMale( "Pirate" ), description )
    
getFemale ([faction="neutral"])
Choose a random female civilian portrait.

Parameters:

  • faction string Name of faction to get a portrait for, or nil for neutral. (default "neutral")

Usage:

    misn.setNPC( "Sam", getFemale(), description )
    
get ([faction="neutral"])
Choose a random civilian portrait of any gender.

Parameters:

  • faction string Name of faction to get a portrait for, or nil for neutral. (default "neutral")

Usage:

    misn.setNPC( "Sam", get( "Empire" ), description )
    
getMaleMil ([faction="neutral"])
Choose a random male military portrait.

Parameters:

  • faction string Name of faction to get a portrait for, or nil for neutral. (default "neutral")

Usage:

    misn.setNPC( "Sam", getMaleMil( "Pirate" ), description )
    
getFemaleMil ([faction="neutral"])
Choose a random female military portrait.

Parameters:

  • faction string Name of faction to get a portrait for, or nil for neutral. (default "neutral")

Usage:

    misn.setNPC( "Sam", getFemaleMil( "Dvaered" ), description )
    
getMil ([faction="neutral"])
Choose a random military portrait of any gender.

Parameters:

  • faction string Name of faction to get a portrait for, or nil for neutral. (default "neutral")

Usage:

    misn.setNPC( "Sam", getMil( "Empire" ), description )
    
getFullPath (str)
Gets the full path of a portrait relative to the data directory.

Parameters:

  • str string Name of the portrait image to get.

Usage:

    portrait.getFullPath( portrait.get() )
    
generated by LDoc 1.5.0 Last updated 2024-12-21 08:10:17