User:Axonis

From GECK
Jump to: navigation, search

SANDBOX

Resolutionconverter

Unlike Oblivion, the user interface of Fallout 3 and New Vegas relies a lot on straight lines that need to be displayed crisply without standard texture aliasing.

resolutionconverter is a special trait of the screen selector and it returns the size of a pixel of the game's resolution.

It can be accessed by <copy src="screen" trait="resolutionconverter" />

As such, the following code:

 <hotrect name="pixel">
 	<width> <copy src="screen" trait="resolutionconverter" /> </width>
 	<height> <copy src="screen" trait="resolutionconverter" /> </height>
 	<alpha> 255 </alpha>
 	<brightness> 255 </brightness>
 	<x> 200 </x>
 	<y> 200 </y>
 </hotrect>

will render a real pixel on the screen.

To compare this with a dot, add:

 <hotrect name="dot">
 	<width> 1 </width>
 	<height> 1 </height>
 	<alpha> 255 </alpha>
 	<brightness> 255 </brightness>
 	<x> 205 </x>
 	<y> 200 </y>
 </hotrect>

Notice that in high resolutions the dot will be larger.

resolutionconverter provides a convenient method of creating straight lines. For example, you can use

 <hotrect name="line">
 	<width> <copy src="screen" trait="resolutionconverter" /> </width>
 	<height> 200 </height>
 	<alpha> 255 </alpha>
 	<brightness> 255 </brightness>
 	<x> 200 </x>
 	<y> 200 </y>
 </hotrect>

and a line will be rendered without using images.

In addition, you can calculate the game's window or screen resolution by dividing the rendered width and height with the resolutionconverter.

 <_ScreenWidth>
 	<copy src="screen" trait="width"/>
 	<div src="screen" trait="resolutionconverter"/>
 </_ScreenWidth>
 <_ScreenHeight>
 	<copy src="screen" trait="height"/>
 	<div src="screen" trait="resolutionconverter"/>
 </_ScreenHeight>

Lutana's NVSE Plugin Nexus page documentation for Version 18.2 (11/13/16) by luthienanarion

Controller DirectInput Emulation:

DirectInput emulation modes enable controller input with mods that normally require the keyboard, such as Project Nevada.

Open the Sleep/Wait Menu (default: BACK button) and press the X button for KEYPRESS mode or the Y button for CONTROL mode. To disable emulation, press the LS button (press the left stick into the controller). A notification will appear upon closing the Sleep/Wait Menu when the emulation mode changes.

KEYPRESS MODE:

In this mode, all controller buttons also register as keyboard or mouse input as mapped below. If a mod has configurable key inputs (e.g. GetKeyPressed in MCM menus), you can configure them using the controller buttons.

  • A: NUMPAD 1
  • B: NUMPAD 3
  • X: NUMPAD 7
  • Y: NUMPAD 9
  • UP: NUMPAD 8
  • DOWN: NUMPAD 2
  • LEFT: NUMPAD 4
  • RIGHT: NUMPAD 6
  • UP-LEFT: NUMPAD HOME
  • UP-RIGHT: NUMPAD PGUP
  • DOWN-LEFT: NUMPAD END
  • DOWN-RIGHT: NUMPAD PGDN
  • LB: NUMPAD -
  • RB: NUMPAD +
  • BACK: NUMPAD /
  • START: NUMPAD *
  • LS: NUMPAD 0
  • RS: NUMPAD .
  • GUIDE: NUMPAD ENTER
  • LTR: MOUSE 2 (right-click)
  • RTR: MOUSE 1 (left-click)

CONTROL MODE:

In this mode, all controller buttons also register keyboard input for the mapped controls. For example, Pressing the 'B' button will also register as pressing whichever key is used to open the Pip-Boy (TAB by default).