Wired Console Screen

From GMod Wiki

Jump to: navigation, search


Back
Function:Creates a screen for use with the High-speed wire system (CPU chip)
Primary fire:Spawns screen
Secondary fire:No action.
Reload:No action.
Notes:highspeed memory: 0 to 1079 Is whats on screen, odd numbers are char param , address 2047 = clock , address 2041 = Clear Screen

Brief

Allows messages to be shown using the CPU chip or expression chip (with some difficulty).

Instructions

Primary fire creates a screen.

Inputs

  • Char - The Ascii code of the character you wish to write at the current XY position on the screen.
  • CharParam - The background/forground color of the character.
  • CharX - X position of the cursor.
  • CharY - Y position of the cursor.
  • Clk - On/Off

Outputs

  • Memory - Hi-speed output. Connects to other hi-speed wire devices.

Variables

-

Useful hints

  • Screens have min/max pixel addresses: 0 - 29 for X (horizontal), 0 - 17 for Y (vertical)

Example


Address Information

Address Abilities/Meanings
Even #ed - 0,2,4... Simple Character (If multiple characters are supplied, the first one will be used.)
Odd #ed - 1,3,5... Options/Parameters (See Wire_Expression2#Wirelink)
2031 Low shift column
2032 High shift column
2033 Low shift row
2034 High shift row
2035 Charset, always 0
2036 Brightness (-127..127)
2037 Shift cells * Obsolete *
2038 Shift rows (number of rows, >0 shift down, <0 shift up)
2039 Clear Row (Written value specifies the row)
2040 Clear Column (Written value specifies the column)
2041 Clear Screen
2042 Background Color (When BG color is 000, it will be replaced by this color.)
2043 Cursor Blink Rate, in seconds
2044 Cursor Size, in percent (.25 = 1/4 of the character height)
2045 Cursor Address
2046 Cursor Enabled (Default = 0)(Confirmation needed)
2047 Clk (Same as Clk input)

Note: Information pulled from this topic.


Expression Gate 2 Support

This display screen can be used with the expression gate 2.

The command to use is: XWL:writeString(S,N,N(,N,N,N)) which you can learn more about on the Expression 2 page Wire_Expression2

Personal tools