... | ... | @@ -25,12 +25,15 @@ Full instructions for The Sims 2 can be found [at simsnetwork.com](http://www.si |
|
|
|
|
|
1. Implement the `GameWriterInterface` in a subclass (also inherit `QObject`).
|
|
|
2. Add the following code in your class definition (the header file):
|
|
|
|
|
|
```cpp
|
|
|
Q_PLUGIN_METADATA(IID "com.simsnetwork.GameWriterInterface")
|
|
|
Q_INTERFACES(GameWriterInterface)
|
|
|
```
|
|
|
|
|
|
3. Create a settings widget (`QWidget`) to be embedded in the UI.
|
|
|
4. Make sure it installs to the correct directory. In CMakeLists.txt:
|
|
|
|
|
|
```cmake
|
|
|
find_package(GraphicsRulesMaker REQUIRED)
|
|
|
install(TARGETS MyGameWriter
|
... | ... | |