stretchedfixedmode: rename plugin to 'stretched mode'
This commit is contained in:
@@ -23,14 +23,14 @@
|
|||||||
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package net.runelite.client.plugins.stretchedfixedmode;
|
package net.runelite.client.plugins.stretchedmode;
|
||||||
|
|
||||||
import net.runelite.client.config.Config;
|
import net.runelite.client.config.Config;
|
||||||
import net.runelite.client.config.ConfigGroup;
|
import net.runelite.client.config.ConfigGroup;
|
||||||
import net.runelite.client.config.ConfigItem;
|
import net.runelite.client.config.ConfigItem;
|
||||||
|
|
||||||
@ConfigGroup("stretchedfixedmode")
|
@ConfigGroup("stretchedmode")
|
||||||
public interface StretchedFixedModeConfig extends Config
|
public interface StretchedModeConfig extends Config
|
||||||
{
|
{
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "keepAspectRatio",
|
keyName = "keepAspectRatio",
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package net.runelite.client.plugins.stretchedfixedmode;
|
package net.runelite.client.plugins.stretchedmode;
|
||||||
|
|
||||||
import com.google.common.eventbus.Subscribe;
|
import com.google.common.eventbus.Subscribe;
|
||||||
import com.google.inject.Provides;
|
import com.google.inject.Provides;
|
||||||
@@ -38,18 +38,18 @@ import net.runelite.client.plugins.Plugin;
|
|||||||
import net.runelite.client.plugins.PluginDescriptor;
|
import net.runelite.client.plugins.PluginDescriptor;
|
||||||
|
|
||||||
@PluginDescriptor(
|
@PluginDescriptor(
|
||||||
name = "Stretched Fixed Mode",
|
name = "Stretched Mode",
|
||||||
description = "Resize the game while in fixed mode",
|
description = "Stretches the game in fixed and resizable modes.",
|
||||||
tags = {"resize"},
|
tags = {"resize", "ui", "interface", "stretch", "scaling", "fixed"},
|
||||||
enabledByDefault = false
|
enabledByDefault = false
|
||||||
)
|
)
|
||||||
public class StretchedFixedModePlugin extends Plugin
|
public class StretchedModePlugin extends Plugin
|
||||||
{
|
{
|
||||||
@Inject
|
@Inject
|
||||||
private Client client;
|
private Client client;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
private StretchedFixedModeConfig config;
|
private StretchedModeConfig config;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
private MouseManager mouseManager;
|
private MouseManager mouseManager;
|
||||||
@@ -61,9 +61,9 @@ public class StretchedFixedModePlugin extends Plugin
|
|||||||
private TranslateMouseWheelListener mouseWheelListener;
|
private TranslateMouseWheelListener mouseWheelListener;
|
||||||
|
|
||||||
@Provides
|
@Provides
|
||||||
StretchedFixedModeConfig provideConfig(ConfigManager configManager)
|
StretchedModeConfig provideConfig(ConfigManager configManager)
|
||||||
{
|
{
|
||||||
return configManager.getConfig(StretchedFixedModeConfig.class);
|
return configManager.getConfig(StretchedModeConfig.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -100,7 +100,7 @@ public class StretchedFixedModePlugin extends Plugin
|
|||||||
@Subscribe
|
@Subscribe
|
||||||
public void onConfigChanged(ConfigChanged event)
|
public void onConfigChanged(ConfigChanged event)
|
||||||
{
|
{
|
||||||
if (!event.getGroup().equals("stretchedfixedmode"))
|
if (!event.getGroup().equals("stretchedmode"))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package net.runelite.client.plugins.stretchedfixedmode;
|
package net.runelite.client.plugins.stretchedmode;
|
||||||
|
|
||||||
import java.awt.Component;
|
import java.awt.Component;
|
||||||
import java.awt.Dimension;
|
import java.awt.Dimension;
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package net.runelite.client.plugins.stretchedfixedmode;
|
package net.runelite.client.plugins.stretchedmode;
|
||||||
|
|
||||||
import java.awt.Component;
|
import java.awt.Component;
|
||||||
import java.awt.Dimension;
|
import java.awt.Dimension;
|
||||||
@@ -33,7 +33,7 @@ import net.runelite.rs.api.RSClient;
|
|||||||
import net.runelite.rs.api.RSGameEngine;
|
import net.runelite.rs.api.RSGameEngine;
|
||||||
|
|
||||||
@Mixin(RSGameEngine.class)
|
@Mixin(RSGameEngine.class)
|
||||||
public abstract class StretchedFixedModeMaxSizeMixin implements RSGameEngine
|
public abstract class StretchedModeMaxSizeMixin implements RSGameEngine
|
||||||
{
|
{
|
||||||
@Shadow("clientInstance")
|
@Shadow("clientInstance")
|
||||||
private static RSClient client;
|
private static RSClient client;
|
||||||
@@ -33,7 +33,7 @@ import net.runelite.api.mixins.Mixin;
|
|||||||
import net.runelite.rs.api.RSClient;
|
import net.runelite.rs.api.RSClient;
|
||||||
|
|
||||||
@Mixin(RSClient.class)
|
@Mixin(RSClient.class)
|
||||||
public abstract class StretchedFixedModeMixin implements RSClient
|
public abstract class StretchedModeMixin implements RSClient
|
||||||
{
|
{
|
||||||
@Inject
|
@Inject
|
||||||
private static boolean stretchedEnabled;
|
private static boolean stretchedEnabled;
|
||||||
Reference in New Issue
Block a user