본문 바로가기
카테고리 없음

게임 매크로 커뮤니티 NGM매크로

by 엔지엠 2020. 3. 13.
반응형

안녕하세요. 엔지엠소프트웨어입니다. 이번에 새롭게 추가된 소스 모드에서 인텔리센스를 사용하는 방법에 대해 알아보도록 하겠습니다. 인텔리센스는 아래 동영상처럼 사용자가 설정한 키워드에 반응하여 텍스트 또는 모델을 자동으로 완성시켜주는 기능입니다.

 

 

 

이 기능을 사용하려면 기본적으로 내문서 > NGM5 > Configuration 폴더에 아래 2개의 파일이 필요합니다.

models.ngis

keywords.ngis

 

 

models.ngis 파일은 모델을 자동으로 만들어주는 인텔리센스 파일입니다. 샘플은 아래와 같고, 사용자가 수정 및 추가하여 자신에게 맞는 인텔리센스를 구성할 수 있습니다. 첨부되어 있는 models.ngis 파일을 다운로드하여 내문서 > NGM5 > Configuration폴더에 복사하세요.

<ProcessorInformation Text="프로세서 정보" Type="NGM.Models.Hardware.ProcessorModel, NGM.Models" Icon="tree_hardware_processor">\n<DataModel>\n<ProcessorModel>\n<FunctionKey>HARDWARE_PROCESSOR_INFO</FunctionKey>\n<GetVariables />\n<SetVariables />\n<ID />\n<Description />\n</ProcessorModel>\n</DataModel>\n</ProcessorInformation>

<ComputerInformation Text="컴퓨터 정보" Type="NGM.Models.Hardware.ComputerInformationModel, NGM.Models" Icon="tree_hardware_cpu">\n<DataModel>\n<ComputerInformationModel>\n<FunctionKey>HARDWARE_COMPUTER_INFO</FunctionKey>\n<GetVariables />\n<SetVariables />\n<ID />\n<Description />\n</ComputerInformationModel>\n</DataModel>\n</ComputerInformation>

<BIOSInformation Text="바이오스 정보" Type="NGM.Models.Hardware.BIOSInformationModel, NGM.Models" Icon="tree_hardware_bios">\n<DataModel>\n<BIOSInformationModel>\n<FunctionKey>HARDWARE_BIOS_INFO</FunctionKey>\n<GetVariables />\n<SetVariables />\n<ID />\n<Description />\n</BIOSInformationModel>\n</DataModel>\n</BIOSInformation>

<DriveInformation Text="드라이브 정보" Type="NGM.Models.Hardware.DriveInformationModel, NGM.Models" Icon="tree_hardware_disk">\n<DataModel>\n<DriveInformationModel>\n<FunctionKey>HARDWARE_DRIVE_INFO</FunctionKey>\n<GetVariables />\n<SetVariables />\n<ID />\n<Description />\n</DriveInformationModel>\n</DataModel>\n</DriveInformation>

<MemoryInformation Text="메모리 정보" Type="NGM.Models.Hardware.MemoryInformationModel, NGM.Models" Icon="tree_memory">\n<DataModel>\n<MemoryInformationModel>\n<FunctionKey>HARDWARE_MEMORY_INFO</FunctionKey>\n<GetVariables />\n<SetVariables />\n<ID />\n<Description />\n</MemoryInformationModel>\n</DataModel>\n</MemoryInformation>

<NetworkAdapterInformation Text="랜카드 정보" Type="NGM.Models.Hardware.NetworkAdapterInformationModel, NGM.Models" Icon="tree_hardware_network">\n<DataModel>\n<NetworkAdapterInformationModel>\n<FunctionKey>HARDWARE_NETWORK_ADAPTER_INFO</FunctionKey>\n<GetVariables />\n<SetVariables />\n<ID />\n<Description />\n</NetworkAdapterInformationModel>\n</DataModel>\n</NetworkAdapterInformation>

<MainBoardInformation Text="매인보드 정보" Type="NGM.Models.Hardware.MainBoardInformationModel, NGM.Models" Icon="tree_hardware_mainboard">\n<DataModel>\n<MainBoardInformationModel>\n<FunctionKey>HARDWARE_MAINBOARD_INFO</FunctionKey>\n<GetVariables />\n<SetVariables />\n<ID />\n<Description />\n</MainBoardInformationModel>\n</DataModel>\n</MainBoardInformation>

<CPUInformation Text="CPU 정보" Type="NGM.Models.Hardware.CPUInformationModel, NGM.Models" Icon="tree_hardware_cpu">\n<DataModel>\n<CPUInformationModel>\n<FunctionKey>HARDWARE_CPU_INFO</FunctionKey>\n<GetVariables />\n<SetVariables />\n<ID />\n<Description />\n</CPUInformationModel>\n</DataModel>\n</CPUInformation>

<HardwareCamera Text="카메라" Type="NGM.Models.Hardware.CameraModel, NGM.Models" Icon="tree_hardware_camera">\n<DataModel>\n<CameraModel>\n<FunctionKey>HARDWARE_CAMERA</FunctionKey>\n<GetVariables />\n<SetVariables />\n<ID />\n<Description />\n</CameraModel>\n</DataModel>\n</HardwareCamera>

 

 

models.ngis는 팝업으로 표시되는 인텔리센스에서 클릭하면 전체 내용을 확인할 수 있습니다. 또한, 엔터키 또는 마우스 더블 클릭으로 입력을 완료할 수 있습니다.

 

 

keywords.ngis는 사용자가 생성한 키워드에 반응하며, 해당 키워드를 자동으로 추가해줍니다. 첨부되어 있는 파일을 다운로드하여 models.ngis와 동일한 위치에 복사하세요. 내용은 아래와 같이 추가할 수 있습니다.

ProcessorInformation

ComputerInformation

BIOSInformation

DriveInformation

MemoryInformation

NetworkAdapterInformation

MainBoardInformation

CPUInformation

HardwareCamera

NGM.Models.Hardware.ProcessorModel

NGM.Models.Hardware.ComputerInformation

NGM.Models.Hardware.BIOSInformation

 

 

주의할점은 라인당 하나의 인텔리센스라는 점입니다. 여러줄에 걸쳐서 코드가 추가되어야 한다면 \n(줄바꿈 기호)를 사용해야 합니다. 특별히 어려운점은 없지만, 엔지엠에서 제공하는 수많은 액션들과 속성들로 인해 모두 작성하기는 어려울수도 있습니다. 취향에 맞게 만들어서 사용하면 보다 쉽게 소스 모드를 이용할 수 있을겁니다.

 

 

감사합니다.

http://ngmsoftware.com/bbs/board.php?bo_table=notice&wr_id=36

반응형

댓글