Go to the source code of this file.
|  | 
| class vobject | WriteBool (bool value) | 
|  | 
| proto native IEntitySource | ToEntitySource () | 
|  | 
| proto native void | WriteInt (int value) | 
|  | 
| proto native void | WriteFloat (float value) | 
|  | 
| proto native void | WriteString (string value) | 
|  | 
| proto native void | WriteVector (vector value) | 
|  | 
| proto native void | WriteMatrixAsQuaternionVector (vector mat[4]) | 
|  | 
| proto native void | WriteIntAsByte (int value) | 
|  | 
| proto native void | WriteIntAsUByte (int value) | 
|  | 
| proto native void | WriteIntAsHalf (int value) | 
|  | 
| proto native void | WriteIntAsUHalf (int value) | 
|  | 
| proto native void | WriteFloatAsByte (float value, float min, float max) | 
|  | 
| proto native void | WriteFloatAsHalf (float value, float min, float max) | 
|  | 
| proto native void | MakeScreenshot (string name) | 
|  | 
| proto native int | GetFPS () | 
|  | 
|  | 
| proto native int | LoadSkyPresets (string presetsFile) | 
|  | 
| proto native int | InitSky (string presetName) | 
|  | 
| proto native int | SetSkyPreset (string presetName, float stormy, float dayTime) | 
|  | 
| proto native int | LerpSkyPreset (string presetName1, string presetName2, float dayTime, float stormy1, float stormy2, float lerpVal) | 
|  | 
| proto native int | LerpSkyPreset3 (string presetName1, string presetName2, string presetName3, float dayTime, float stormy1, float stormy2, float stormy3, float w1, float w2, float w3) | 
|  | 
| proto native void | SetSkyUserPlanets (bool enabled) | 
|  | 
| proto native bool | SetSkyPlanet (int index, float azimuthDeg, float zenithDeg) | 
|  | 
| proto native bool | SetSkyPlanetSize (int index, float angleDeg) | 
|  | 
| proto native void | SetStarsObserverTime (int year, int month, int day, int hour, int minute, float sec, int offsetSec) | 
|  | 
| proto native void | SetStarsObserverPosition (float latitudeDeg, float longitudeDeg) | 
|  | 
| proto native void | SetRealStarAutoUpdate (bool update) | 
|  | 
| proto native void | SetNightLayerRotMatrix (vector mat[3]) | 
|  | 
| proto native void | SetStarsRotMatrix (vector mat[3]) | 
|  | 
◆ Material
◆ vobject
◆ ARGB()
Definition at line 322 of file proto.c.
  323{
  324  a = a << 24;
  325  r = r << 16;
  326  g = g << 8;
  327  return a | r | g | b;
  328}
Referenced by AddModifier(), BleedingIndicatorDropData::AdjustColorSaturation(), ARGBF(), CalculateEyeAccoTarget(), UIScriptedMenu::ColorDisable(), ScriptedWidgetEventHandler::ColorDisabled(), OptionSelectorBase::ColorDisabledConsole(), ScriptedWidgetEventHandler::ColorDisabledConsole(), ScriptedWidgetEventHandler::ColorFocussed(), UIScriptedMenu::ColorHighlight(), ScriptedWidgetEventHandler::ColorHighlight(), OptionSelectorBase::ColorHighlight(), ColorHighlight(), ServerBrowserTab::ColorHighlight(), ScriptedWidgetEventHandler::ColorHighlightConsole(), UIScriptedMenu::ColorNormal(), ScriptedWidgetEventHandler::ColorNormal(), OptionSelectorBase::ColorNormal(), ColorNormal(), ServerBrowserTab::ColorNormal(), OptionSelectorBase::ColorNormalConsole(), ScriptedWidgetEventHandler::ColorNormalConsole(), OptionSelectorBase::ColorOption(), UIScriptedMenu::ColorRed(), ScriptedWidgetEventHandler::ColorRed(), ScriptedWidgetEventHandler::ColorRed(), ScriptConsoleEnfScriptTab::ColorRunButton(), UIScriptedMenu::ColorWhite(), ScriptedWidgetEventHandler::ColorWhite(), ScriptedWidgetEventHandler::ColorWhite(), HandsPreview::CreateNewIcon(), ScriptedWidgetEventHandler::Darken(), Transport::DebugFreeAreaAtDoor(), EntityAI::DebugFreeAreaAtDoor(), HandsPreview::DeleteIcon(), ScriptedWidgetEventHandler::DeselectTabControl(), Hud::DisplayTendencyNormal(), Hud::DisplayTendencyTemp(), Icon::FullScreen(), ScriptConsoleItemsTab::GetFilterColor(), GetTemperatureColor(), ScriptConsoleItemsTab::Init(), Hud::InitBadgesAndNotifiers(), ScriptedWidgetEventHandler::Lighten(), ScriptConsoleItemsTab::OnChange(), InventoryGridController::OnItemDraggingOver(), ScriptedWidgetEventHandler::OnMouseEnter(), ScriptedWidgetEventHandler::OnMouseLeave(), OnWidgetScriptInit(), ScriptConsoleItemsTab::PrepareFilters(), ScriptedWidgetEventHandler::Preview(), ScriptedWidgetEventHandler::Select(), ScriptedWidgetEventHandler::SelectTabControl(), Hud::Update(), and UIScriptedMenu::UpdateQuickbarItemCard().
 
 
◆ ARGBF()
Converts <0.0, 1.0> ARGB into color. 
Definition at line 332 of file proto.c.
  333{
  334  return ARGB((
float)(
fa * 255.0), (
float)(
fr * 255.0), (
float)(
fg * 255.0), (
float)(
fb * 255.0));
 
  335}
int ARGB(int a, int r, int g, int b)
References ARGB().
Referenced by GameplayEffectWidgets_base::CalculateBreathEffect(), ScriptedWidgetEventHandler::Deselect(), Icon::DestroyWhiteBackground(), DrawConnectingLines(), UIScriptedMenu::DrawConnectingLines(), SlotsIcon::OnIconDrop(), ScriptedWidgetEventHandler::OnMouseEnter(), ScriptedWidgetEventHandler::OnMouseLeave(), ScriptedWidgetEventHandler::Select(), ClosableHeader::SetActive(), Header::SetActive(), ScriptedWidgetEventHandler::SetBattleye(), ScriptedWidgetEventHandler::SetPing(), ScriptedWidgetEventHandler::SetPopulation(), ServerBrowserTab::SetSort(), ScriptedWidgetEventHandler::Unselect(), HoverEffect::Update(), MainMenuButtonEffect::Update(), and ScriptedWidgetEventHandler::UpdateColors().
 
 
◆ AWHITE()
Definition at line 338 of file proto.c.
  339{
  340  return a << 24 | 0xffffff;
  341}
 
 
◆ GetFPS()
Returns actual fps (average in last 10 frames) 
 
 
◆ InitSky()
initialize sky with preset, must be called to set the global planets setting 
- Parameters
- 
  
    | presetName | name of preset to be set (one of presets from file loaded using LoadSkyPresets) |  
 
 
 
◆ LerpARGB()
Definition at line 344 of file proto.c.
  345{
  347  const int cmask = 0x00ff00ff;
 
  348 
  352 
  356 
  357  return cb1 << 8 | 
c1;
 
  358}
 
 
◆ LerpSkyPreset()
lerp two sky presets and set the result using day time 
- Parameters
- 
  
    | presetName1 | name of preset1 to be set (one of presets from file loaded using LoadSkyPresets) |  | presetName2 | name of preset2 to be set (one of presets from file loaded using LoadSkyPresets) |  | dayTime | day of time <0, 1> |  | stormy1 | stormy parameter for preset1 <0, 1> |  | stormy2 | stormy parameter for preset2 <0, 1> |  | lerpVal | lerp value between two presets |  
 
 
 
◆ LerpSkyPreset3()
lerp three sky presets using barycentric coordinates and set the result using day time 
- Parameters
- 
  
    | presetName1 | name of preset1 to be set (one of presets from file loaded using LoadSkyPresets) |  | presetName2 | name of preset2 to be set (one of presets from file loaded using LoadSkyPresets) |  | presetName2 | name of preset3 to be set (one of presets from file loaded using LoadSkyPresets) |  | dayTime | day of time <0, 1> |  | stormy1 | stormy parameter for preset1 <0, 1> |  | stormy2 | stormy parameter for preset2 <0, 1> |  | stormy3 | stormy parameter for preset3 <0, 1> |  | w1 | weight for preset1 |  | w2 | weight for preset2 |  | w3 | weight for preset3 |  
 
 
 
◆ LoadSkyPresets()
load all sky presets from xml file 
- Parameters
- 
  
    | presetFile | name of XML file with presets |  
 
 
 
◆ MakeScreenshot()
makes screenshot and stores it in to a DDS format file if the name begins with '$' the screenshot in stored in the fullpath according to the name parameter otherwise the screenshot is stored in "$profile:ScreenShotes/DATE TIME-NAME.dds" where DATE, TIME AND NAME are replaced by actual values 
- Parameters
- 
  
    | name | name of the screenshot |  
 
 
 
◆ SetNightLayerRotMatrix()
night sky layer rotation matrix 
- Parameters
- 
  
  
 
 
◆ SetRealStarAutoUpdate()
update of stars 
- Parameters
- 
  
    | update | true = automatic stars update, false = update is on user by SetStarsRotMatrix |  
 
 
 
◆ SetSkyPlanet()
set planet position 
- Parameters
- 
  
    | index | index of planet, 0 = sun usually |  | azimuthDeg | azimuth position in degrees |  | zenithDeg | zenith position in degrees |  
 
 
 
◆ SetSkyPlanetSize()
set planet size in degrees 
- Parameters
- 
  
    | index | index of planet, 0 = sun usually |  | angleDeg | angle size in degrees |  
 
 
 
◆ SetSkyPreset()
set sky preset to day time and stormy parameter 
- Parameters
- 
  
    | presetName | name of preset to be set (one of presets from file loaded using LoadSkyPresets) |  | stormy | stormy parameter <0, 1> |  | dayTime | day of time <0, 1> |  
 
 
 
◆ SetSkyUserPlanets()
user can set planets to its own positions on skydome using SetSkyPresetPlanet function, if disabled, the planets are positioned automatically using sky preset setting 
- Parameters
- 
  
  
 
 
◆ SetStarsObserverPosition()
set observer position 
- Parameters
- 
  
    | latitudeDeg | latitude in degrees |  | longitudeDeg | longitude in degrees |  
 
 
 
◆ SetStarsObserverTime()
set UTC time for real time stars 
- Parameters
- 
  
    | year |  |  | month |  |  | day |  |  | hour |  |  | minute |  |  | sec |  |  | offsetSec | to take into account time difference between Greenwich and local time (position dependency, summer/winter time) |  
 
 
 
◆ SetStarsRotMatrix()
stars rotation matrix, is different from night rotation matrix because we don't know the time when night layers was captured 
- Parameters
- 
  
  
 
 
◆ ToEntitySource()
◆ VectortoRGBA()
Definition at line 298 of file proto.c.
  299{
  301  int r, g, b, a, 
rgba;
 
  302 
  306 
  307  x = 
x * 127.0 + 128.0;
 
  308  y = 
y * 127.0 + 128.0;
 
  309  z = z * 127.0 + 128.0;
  311 
  315  b = z;
  316 
  317  return r | g | b | a;
  318}
References x, and y.
 
 
◆ WriteBool()
◆ WriteFloat()
◆ WriteFloatAsByte()
◆ WriteFloatAsHalf()
◆ WriteInt()
◆ WriteIntAsByte()
◆ WriteIntAsHalf()
◆ WriteIntAsUByte()
◆ WriteIntAsUHalf()
◆ WriteMatrixAsQuaternionVector()
◆ WriteString()
◆ WriteVector()
◆ WriteBool